git basic commands

Download git: https://git-scm.com/

Get into the habit of updating your commits every day when you commute.

The general command operation steps are as follows, which is basically sufficient (even if there is a conflict).

1.git status # 查看当前版本状态(是否修改) 
2.git stash  # 暂存当前修改,将所有至为HEAD状态 
3.git pull 	 # 同步服务器端更新
4.git stash pop # 将文件从临时空间pop下来(将前修改和服务器端进行合并)
5.git gui # 弹窗,图形化提交

After receiving the pop-up window, in the lower right operation area, click the buttons in sequence.

1. Rescan scans for local changes

2. Stage Changed mark change

3.Sign off, enter the description of the change

4.Commit

5.Push pushes the local branch to the server

Basic operation is over..

Subsequent additions, branches, tags, merge branches.

For more commands, see: GO

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324934079&siteId=291194637