Git Study



https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff056ae23da865a000

Command line instructions
Git global setup
git config --global user.name "Alley_Li"
git config --global user.email "lisf4142@163.com"
Create a new repository
git clone http://10.158.143.143/auchan/pss-db.git
cd pss-db
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin http://10.158.143.143/auchan/pss-db.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
cd existing_repo
git remote add origin http://10.158.143.143/auchan/pss-db.git
git push -u origin --all
git push -u origin --tags

Online book

https://git-scm.com/book/en/v2



Alley_Li@PRCSGI1167L MINGW64 ~ $ pwd /c/Users/alley_li Alley_Li@PRCSGI1167L MINGW64 ~ $ cd d: Alley_Li@PRCSGI1167L MINGW64 /d $ ls '$RECYCLE.BIN'/ 'C driver'/ Python/ 370224/ MININT/ 'System Volume Information'/ app/ 'oracle12c_NETWORK from laptop'/ Auchan/ PepsicoSVN/ Alley_Li@PRCSGI1167L MINGW64 /d $ cd Auchan/ l Alley_Li@PRCSGI1167L MINGW64 /d/Auchan $ ls Auchanhelp.txt Document/ kettle/ SourceCode/ tool/ work/ 'data model'/ help/ RunQian.txt 'SQL mapping'/ VPN/ Alley_Li@PRCSGI1167L MINGW64 /d/Auchan $ mkdir GitAuchan Alley_Li@PRCSGI1167L MINGW64 /d/Auchan $ cd GitAuchan/ Alley_Li@PRCSGI1167L MINGW64 /d/Auchan/GitAuchan $ ls Alley_Li@PRCSGI1167L MINGW64 /d/Auchan/GitAuchan $ git init Initialized empty Git repository in D:/Auchan/GitAuchan/.git/ Alley_Li@PRCSGI1167L MINGW64 /d/Auchan/GitAuchan (master) $ git clone http://10.158.143.143:6680/auchan/pss-db.git Cloning into 'pss-db'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://10.158.143.143:6680/auchan/pss-db.git/' Alley_Li@PRCSGI1167L MINGW64 /d/Auchan/GitAuchan (master) $ git clone http://10.158.143.143:6680/auchan/pss-db.git Cloning into 'pss-db'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://10.158.143.143:6680/auchan/pss-db.git/' Alley_Li@PRCSGI1167L MINGW64 /d/Auchan/GitAuchan (master) $

 

posted @ 2018-04-25 17:39  Ayumie  阅读(177)  评论(0编辑  收藏  举报