Getting git version control - code Clouds

1. Download git: https://git-scm.com/download
 
2. The installation process has been to point the next step.
 
3. Go to the folder you just created
 
 
4. At this point cloud login code, create a project. Project Title preferably the same as the folder name.
 
5. Right-click in the folder, select the git bash here, enter the dos interface
 
 
5. Enter the git init command is used to initialize, so git folder where the file is currently manage.
 
6. git add. The collected files in the current folder resides.
 
7.git commit -m "test" to take notes
  Note: The first time you use git, you need to perform:
    your mailbox
    git config --global user.email "...."
    Your name
    git config --global user.name "..."
 
8.git remote add origin depot_path
  Repository path that you create an address warehouse on Ma

 

 
9.git pull origin master project will be pushed to the cloud repository code
    Note: If the situation does not appear to upload, try git pull -f origin master forced to upload
 
 
Summary: The main points which noted that the problems I encountered during use.

Guess you like

Origin www.cnblogs.com/pamela1226/p/11240618.html