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
5 1 vote
Article Rating

Do you want to hire us for your Project Work? Then Contact US.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x