Top 10 Git Commands

1.git config 
which is used to configure user details 

2.git init 
which is used to initialize new git repository 

3.git add 
to send files from working area to staging area

4.git commit 
to commit your code changes

5.git status 
displays the state of the working directory and the staging area.

6.git log --oneline 
display the number of commits 

7.git show 
display a specific or a particular commit code changes by using 4 characters commit id

8.git push 
to push the code from git to GitHub repository 

9.git remote 
to establish the connection between git to GitHub repository 

10.git branch 
to displays all branch details

11.git branch branch name
to create a new branch 

12.git checkout 
switch from one branch to another branch

13.git clone 
to download the entire repository from GitHub to local repository . that means we create a local copy of a remote repository

14.git pull 
to download the latest code from GitHub to local repository that is Downloads and merges latest changes with local repository

15.git log 
display the number of commits and detailed information about your commits like who committed, when committed , at what time they committed and commit ID 

Comments

Popular posts from this blog

Explain Git File Types

Do you place Application Servers in Public Subnets? is it Secure to Place Application Servers in Public Subnets?