0% found this document useful (0 votes)
23 views

Git Init: A Ti Ny Cheatsheet On

Git is the most popular version control system. It allows developers to initialize repositories, add and commit files, push and pull changes to remote repositories, manage branches, merge branches, and view commit logs. Common git commands include git init, git add, git commit, git push, git pull, git branch, git remote, git checkout, git merge, and git clone.

Uploaded by

Ahmed Saeed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Git Init: A Ti Ny Cheatsheet On

Git is the most popular version control system. It allows developers to initialize repositories, add and commit files, push and pull changes to remote repositories, manage branches, merge branches, and view commit logs. Common git commands include git init, git add, git commit, git push, git pull, git branch, git remote, git checkout, git merge, and git clone.

Uploaded by

Ahmed Saeed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

git 

is the most popular version control


A T I N Y C H E A T S H E E T O N
system. Being proficient in git is a must
for every developer.

GIT
git init
Create an empty repository in
the current directory

git add [file]


Add the [file](s) to the staging
area
git commit
Create a snapshot of all the files
in the staging area
git push [name] [b]
Push changes to a remote
repository called [name] to
branch [b]
git pull [name] [b]
Pull any changes from a remote
repository called [name] from
branch [b]
git branch
List all of the branches in your
repo. Add a [branch] argument
to create a new branch
called [branch] .
git remote add
[name] [url]
Add a remote repository
with [url] and an alias
git checkout -b of [name]

[branch]
Switch to a branch named
[branch]
git merge  [branch]
Merge branch named [branch]
with the current one
git clone  [url]
Download a git repository
from [url]
git log
List all the commits in the
current branch’s history

godcrampy sahil.surge.sh

You might also like