Top Git Commands Every Developer Should Know

If you are working with git, you should know some commands which are mandatory and basics for getting started. In this post, we will list the commands which we are going to use as we start learning about git. The details of how to use those commands are mentioned in separate posts referenced as below.

 $ git init

Git init Creates an empty Git repository or reinitialize an existing one.

$ git add

“git add” command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.

$ git config

“git config” command displays and sets the local repository level configuration options as well as global configuration which persists across the git repositories.

$ git status 

“git status” command shows the current working directory status which displays if there are any files which has not been tracked by git and are modified, and if all files are tracked by git.

$ git commit

“git commit” Stores the current contents of the index in a new commit along with a log message from the user describing the changes.

$ git log

“git log” command shows the history of your previous commits which shows who is the author of previous code, when the code was modified.

$ git branch

“git branch” command allows your to see all available branches in your code, which is the current active branch, create branch and delete branch

Related :   How to install Gitiles - repository browser for Git repositories on Ubuntu Linux

You can refer “Starting your first Git Repository” to understand how this commands are getting used during live project.


lynxbee_ezoic

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


Leave a Comment

Android Android Applications Android Build system Android Commands Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded