Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # git commit with add files
- $ git commit -am “[ Type in the commit message]”
- # git diff -This command shows the file differences which are not yet staged.
- $ git diff
- # git reset - This command discards all history and goes back to the specified commit
- $ git reset –-hard
- # git status- This command lists all the files that have to be committed.
- $ git status
- # git branch - List all Current local Branches
- $ git branch
- # remote branch list
- $ git branch -r
- # delete local Branch
- $ git branch -d [branch name]
- # git checkout - This command is used to switch from one branch to another.
- $ git checkout [branch name]
- # Create a new branch
- $ git checkout -b [branch name]
- # git stash - This command temporarily stores all the modified tracked files.
- $ git stash save
- # This command restores the most recently stashed files.
- $ git stash pop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement