Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
GitLab
SourceForge
Launchpad
Phabricator
Gogs
Beanstalk
GitKraken
Launchpad
AWS CodeCommit
Gitea
 Rhodecode
 :) Hot Jobs
 
 :) Latest Articles


  

 


Write down the top 19 git commands?
Question Posted on 03 Oct 2021

Home >> Repository Questions >> Git Questions >> Write down the top 19 git commands?




Write down the top 19 git commands?
Below are the top 19 git commands by uses
(1)git config
(2)git init
(3)git clone
(4)git add
(5)git commit
(6)git diff
(7)git reset
(8)git status
(9)git rm
(10)git log
(11)git show
(12)git tag
(13)git branch
(14)git checkout
(15)git merge
(16)git remote
(17)git push
(18)git pull
(19)git stash
(1)git config:-We use this command to sets the author name and email address respectively which is used with our commit.
(2)git init:-We used this command to start a new repository.
(3)git clone:-We used this command is used to obtain a repository from an existing URL.
(4)git add:-We used this command to add file to staging area.
(5)git commit:-We used this command records or snapshots the file permanently in the version history.
(6)git diff:-We used this command to shows the file differences which are not yet staged.
(7)git reset:-This command unstages the file, but it preserves the file contents.
(8)git status:-From this command we get all the files that have to be committed.
(9)git rm:-We used this command to deletes the file from our working directory and stages the deletion.
(10)git log:-We used this command to list the version history for the current branch.
(11)git show:-From the help of this command it will shows the metadata and content changes of the specified commit.
(12)git tag:-We used this command to give tags to the specified commit.
(13)git branch:-From the helps of this command we will get lists of all the local branches in the current repository.
(14)git checkout:-Generlly we used this command to switch from one branch to another.
(15)git merge:-We use this command to merges the specified branchs history into the current branch.
(16)git remote:-We used this command to connect our local repository to the remote server.
(17)git push:-We used this command to commit changes of master branch to our remote repository.
(18)git pull:-We used this command to fetches and merges changes on the remote server to our working directory.
(19)git stash:-We used this command to temporarily stores all the modified tracked files.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Why Git is fast and which language is used in GIT?
What is syntax to fix a broken commit in GIT?
What is GitLive new features that will change the game?
What is Subgit and what is the use of this?
Difference between Git and SVN






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |