Skip to content

Instantly share code, notes, and snippets.

@FlameWert
Last active February 4, 2020 07:32
Show Gist options
  • Save FlameWert/adc2da0828fdca0eacbfc17e0b9558be to your computer and use it in GitHub Desktop.
Save FlameWert/adc2da0828fdca0eacbfc17e0b9558be to your computer and use it in GitHub Desktop.
Some handy git commands which I tend to forget easily

Git Commands

To get a remote branch to local

git branch branch_name origin/branch_name

To Unstage all files

git reset

To ignore content of a folder

Create a new .gitignore file inside the folder and add following code *

*/

.gitignore

And commit this .gitignore file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment