$ git config --global user.name "Your Name" $ git config --global user.email "[email protected]" 初始化倉庫 git init 添加
方式一: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and
git恢復已刪除的分支 git branch branch (HEAD) 這裏的head是我們刪除分支時顯示的sha1值,也是我們刪除的分支指向的commit記錄的sha1值 git撤銷已經push的更改 git reset —h
簡述: 之前一直用的SVN,工作閒暇時間來研究一下Git版本控制工具,如何搭建以及使用讓我們一起來康康吧。 實現過程: 一、準備工作 (1)安裝Git,安裝地址 (2)註冊GitHub賬號 ; (3)GitHub以及git終端相關準備