Supplement on local git

As mentioned earlier, many git permissions must be configured accordingly. Here are some additional instructions.

        Everyone can find the corresponding file in their local directory, the opening method is Win + R, enter% userprofile%

.gitconfig

        Many operations have quick input, as long as the following code is added to the .config file, it can be achieved.
'' '
[alias]
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD-
lg = log --color --graph --pretty = format:'% Cred% h% Creset-% C ( yellow)% d% Creset% s% Cgreen (% cr)% C (bold blue) <% an>% Creset '--abbrev-commit

'''

.ssh

        This was mentioned in the first blog .

        Find this file.

        If you want to connect to your own warehouse, you can put the contents of `` 'id_rsa.pub' '' 'into the settings of the warehouse to configure a new ssh key

Guess you like

Origin www.cnblogs.com/TieJiang13/p/12690611.html