Using git.
1. Initialize git:

  Type git init in the desitnated folder you want to initialize.

2. Initializing a Git repository will create a folder called .git inside the repository folder:

3. Git status

  

 

 

4. Add git to the stage by using git add add_file

5. Configuring git by tying:

  git config --global user.email "your.email@domain.com"

  git config --global user.name "Your name"

6.  A commit is a way to store a snapshot of the files in the folder at a certain point in time.

   git commit -m "Initial commit. Added script.py and README.md" #make a commit with a informative message.

7. Use git log to check the git history.

8. Use git log --stat to check the detail of the git history.

 

posted on 2016-11-03 04:59  阿难1020  阅读(121)  评论(0编辑  收藏  举报