Preparing Your Experience
Fetching components & streaming content. This won't take long.
Fetching components & streaming content. This won't take long.
Find and generate the exact Git commands you need for any task
Always check git status before and after running commands that modify your repository state.
Initialize a repository
git initClone a repository
git clone [url]Stage all changes
git add .Commit changes
git commit -m "[message]"Check status
git statusCreate new branch
git checkout -b [name]Switch branch
git checkout [name]Merge branch
git merge [name]Delete local branch
git branch -d [name]List all branches
git branch -aPush to remote
git push origin [branch]Pull from remote
git pull origin [branch]Add remote
git remote add origin [url]View remotes
git remote -vUndo last commit (keep changes)
git reset --soft HEAD~1Undo last commit (discard changes)
git reset --hard HEAD~1Discard changes in file
git checkout -- [file]Amend last commit
git commit --amend -m "[new-message]"Stash changes
git stashPop stashed changes
git stash pop