0% found this document useful (0 votes)
13 views1 page

Git Cheat Sheet

Uploaded by

angel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

Git Cheat Sheet

Uploaded by

angel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

git init #Initialize git in current directory.

git status #Show git status.


git push #Push to remote repository. #push <name_remote_repo> <branch_name>. Delete
a remote branch #push <remote_repo> -d <branch_name>
git push --force #Force push.
git pull #Pull remote repository. #pull <name_remote_repo> <branch_name>
git pull --force #Force Pull.
git commit #Generate a commit. #gc -m <comment>
git branch #List branches. Create branches #branch <branch_name>. Delete branch
#brnach -d <branch_name>
git rebase -i #Change back to a previous commit.
git commit --all --amend #Correct a commit
git add . #Add untracked files.
git checkout #Change branch.
git clone #Clone a remote repository.
git remote rename origin #Change remote name.
git remote add #Add a remote repository.
git remote add upstream #Add a remote repository as upstream.
git config
git log --all --graph --decorate --oneline #Grafic log git
git merge #Convine one branch to current branch. Ex git merge <branch> Be sure you
are in the branch you want to merge in to like main.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy