Tips & Tricks

Git Cheatsheet

Project initialisation

 git init

Add your project URL

git remote add origin your-project-url

Check your path URL to take pull or push using remote

git remote -v

Update your project URL

git remote set-url origin new git-url-here

Create branch using command

git checkout -b your-branch-name

Switch Branch

git checkout your-branch-name

To check in which branch currently you are

git branch

Delete your branch using command

git push --delete origin your-branch-name

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button