This command fetches and merges changes on the remote server to your working directory. This command deletes a branch on your remote repository. This command pushes all branches to your remote repository. This command sends the branch commits to your remote repository. This command sends the committed changes of master branch to your remote repository. This command is used to connect your local repository to the remote server. This command merges the specified branch’s history into the current branch. This command creates a new branch and also switches to it. This command is used to switch from one branch to another. This command lists all the local branches in the current repository. This command is used to give tags to the specified commit. This command shows the metadata and content changes of the specified commit. This command lists version history for a file, including the renaming of files also. This command is used to list the version history for the current branch. This command deletes the file from your working directory and stages the deletion. This command lists all the files that have to be committed. This command discards all history and goes back to the specified commit. This command undoes all the commits after the specified commit and preserves the changes locally. This command unstages the file, but it preserves the file contents. This command shows the differences between the two branches mentioned. This command shows the differences between the files in the staging area and the latest version present. This command shows the file differences which are not yet staged. This command commits any files you’ve added with the git add command and also commits any files you’ve changed since then. This command records or snapshots the file permanently in the version history. This command adds one or more to the staging area. This command adds a file to the staging area. This command is used to obtain a repository from an existing URL. This command is used to start a new repository. This command sets the author name and email address respectively to be used with your commits. So, let’s get started now!! Git Commands git config Git & GitHub certification has steadily risen from being just a preferred skill to a must-have skill for multiple job roles today. In this blog, I will talk about the Top 20 Git Commands that you will be using frequently while you are working with Git.įollowing are the Git commands which are being covered:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |