Skip to content

wonderflow-bv/git-cheatsheet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

git-cheatsheet

A quick reference for before your morning coffee.

#Branching ###Create a new branch

git checkout -b <name>

###Switch to a branch

git checkout <name>

###Merge branches

git checkout <branch to merge to>
git merge --no-ff <branch to merge from>

###Delete a branch locally

git branch -d <branch name>

###List branches

git branch [-a]

-a will list both local and remote branches

 git checkout 6eb715d -- index.html

#Tagging with semantic versioning

bower version patch|minor|major
npm version patch|minor|major

###Add remote URL

git remote add <name> <address>
#Example: git remote add origin https://github.com/rileyjshaw/git-cheatsheet.git

###Remove remote

git remote rm <name>

About

📑 Just some simple recipes

Resources

License

Stars

Watchers

Forks

Packages

No packages published