Preliminary summary of the use of git

  Use git also just more than a week, it has been deeply in love with this software.

  Before the company has been using clearcase, in addition to a seasoned person within the company who developed the software people, it is estimated will never be anyone know it!

  (Of course, maybe there will be other companies will use, because the habits, in fact, also good).

  Because the use of deep enough at first said they know the future know more then went on to add:

1: Git Bash installed:

  •   Installation package download: https: //www.git-scm.com/download/

    (There mac win linux version, choose to download just fine according to their needs)

  

 

After clicking all the way until the end of the next, just fine. If the folder, right-click the blank space appears git bash on the installation was successful.

 

 

 2: Git Bash to use:

    The first time you use git, to be initialized:

  

 

  This time it has built up a local library up. You can submit code, the code is stored locally. To add it to the code in the commit; as follows:

  ①: git add (do not forget to point back add).

 

   ②: git commit (this time you have the code submitted to the local library), this time he will appear a notepad, just add on to identify the head like, and let you know that this code is submitted to the local library because of what changes.

 

 

   ③ After submitting want to see the history of those code directly gitk on it; as shown below:

 

 

 For more information about gitbash can see the address below, a detailed description:

https://blog.csdn.net/weixin_44460333/article/details/99025478?from=groupmessage&isappinstalled=0 

Guess you like

Origin www.cnblogs.com/Jlord/p/11487348.html