Configuring user name and E-mail:
$ git config --global user.name "Your Name" $ git config --global user.email "[email protected]"
Use the command: git config --list to see the current user information and some other information
$ git config --list
core.excludesfile=/Users/mac/.gitignore_global
difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=/Applications/SourceTree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true
http.postbuffer=524288000
https.postbuffer=524288000
user.email=你的邮箱@qq.com
user.name=你的用户名
macdeMacBook-Pro:~ Artron_LQQ$
https://www.cnblogs.com/jackchensir/p/8306448.html
1.git bash into the directory
2.git init to initialize
3.git add. Add all files in the project to the cache (if the next file, folder along with any submitted)
4.git commit submitted to the local repository git commit -m "File description"
5.git remote add origin git @ (your remote repository address)
6.git clone [email protected] :( your remote repository address)
View 7.git status change documents
git push -u origin master (first submitted to a remote repository)
git push origin master (after omit -u)
8 to resolve the conflict:
1.git stash, his own native code cached,
2.git pull, then I will pull down the remote repository code.
3.git stash pop if there is a conflict, resolve
4.git push
Use svn with more, the first time is available in English do not want to see, ε = ('ο `*))) Oh.
The next principle and write about different points of svn