现在的位置: 首页 > 综合 > 正文

git笔记

2018年02月13日 ⁄ 综合 ⁄ 共 4487字 ⁄ 字号 评论关闭

Last login: Tue Jun 26 08:15:24 on console
ApplematoMacBook-Pro:~ Apple$ cd /Users/Apple/Desktop/WorkSpace/shandongWlan/yhytWLAN 
ApplematoMacBook-Pro:yhytWLAN Apple$ git branch
* master
ApplematoMacBook-Pro:yhytWLAN Apple$ git checkout -b test
M Classes/.DS_Store
M Classes/BaseTabBarController.m
M Classes/ListLocationController.m
M Classes/MyWiFiController.m
M Classes/StatusController.m
M WLAN.xcodeproj/project.pbxproj
M WLAN.xcodeproj/xcuserdata/Apple.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
M WLAN/WLAN-Info.plist
D libbaidumapapi.a
Switched to a new branch 'test'
ApplematoMacBook-Pro:yhytWLAN Apple$ git checkout
M Classes/.DS_Store
M Classes/BaseTabBarController.m
M Classes/ListLocationController.m
M Classes/MyWiFiController.m
M Classes/StatusController.m
M WLAN.xcodeproj/project.pbxproj
M WLAN.xcodeproj/xcuserdata/Apple.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
M WLAN/WLAN-Info.plist
D libbaidumapapi.a
ApplematoMacBook-Pro:yhytWLAN Apple$ git checkout master
M Classes/.DS_Store
M Classes/BaseTabBarController.m
M Classes/ListLocationController.m
M Classes/MyWiFiController.m
M Classes/StatusController.m
M WLAN.xcodeproj/project.pbxproj
M WLAN.xcodeproj/xcuserdata/Apple.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
M WLAN/WLAN-Info.plist
D libbaidumapapi.a
Switched to branch 'master'
ApplematoMacBook-Pro:yhytWLAN Apple$ git add .
ApplematoMacBook-Pro:yhytWLAN Apple$ git commit
[master bc103ea] git version1
 9 files changed, 240 insertions(+), 366 deletions(-)
ApplematoMacBook-Pro:yhytWLAN Apple$ git branch -D test
Deleted branch test (was f379d50).
ApplematoMacBook-Pro:yhytWLAN Apple$ git checkout -b test
Switched to a new branch 'test'
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote
origin
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote -v
origin git@192.168.5.104:yhytWLAN.git (fetch)
origin git@192.168.5.104:yhytWLAN.git (push)
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote rm origin
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote add origin git@192.168.5.74
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote -v
origin git@192.168.5.74 (fetch)
origin git@192.168.5.74 (push)
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote rm origin
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote add origin git@192.168.5.74:yhytWLAN.git
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote -v
origin git@192.168.5.74:yhytWLAN.git (fetch)
origin git@192.168.5.74:yhytWLAN.git (push)
ApplematoMacBook-Pro:yhytWLAN Apple$ git pull origin master
ssh: connect to host 192.168.5.74 port 22: Operation timed out
fatal: The remote end hung up unexpectedly
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote rm origin
ApplematoMacBook-Pro:yhytWLAN Apple$ git remote add origin git@192.168.5.76:yhytWLAN.git
ApplematoMacBook-Pro:yhytWLAN Apple$ git pull origin master
The authenticity of host '192.168.5.76 (192.168.5.76)' can't be established.
RSA key fingerprint is c3:04:c2:52:74:6b:b7:e4:fa:47:52:dc:38:76:bc:a8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.76' (RSA) to the list of known hosts.
Password:

Password:
Password:
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
ApplematoMacBook-Pro:yhytWLAN Apple$ 
ApplematoMacBook-Pro:yhytWLAN Apple$ 
ApplematoMacBook-Pro:yhytWLAN Apple$ 
ApplematoMacBook-Pro:yhytWLAN Apple$ 
ApplematoMacBook-Pro:yhytWLAN Apple$ 
ApplematoMacBook-Pro:yhytWLAN Apple$ cd ~/.ssh
ApplematoMacBook-Pro:.ssh Apple$ open .
ApplematoMacBook-Pro:.ssh Apple$ git pull origin master
fatal: Not a git repository (or any of the parent directories): .git
ApplematoMacBook-Pro:.ssh Apple$ git remote -v
fatal: Not a git repository (or any of the parent directories): .git
ApplematoMacBook-Pro:.ssh Apple$ cd -
/Users/Apple/Desktop/WorkSpace/shandongWlan/yhytWLAN
ApplematoMacBook-Pro:yhytWLAN Apple$ git pull origin master
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
From 192.168.5.76:yhytWLAN
 * branch            master     -> FETCH_HEAD
Merge made by recursive.
 Resources/bg_feedback.png    |  Bin 25813 -> 30154 bytes
 Resources/bg_feedback@2x.png |  Bin 18547 -> 23680 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
ApplematoMacBook-Pro:yhytWLAN Apple$ git checkout master
Switched to branch 'master'
ApplematoMacBook-Pro:yhytWLAN Apple$ git merge test
Updating bc103ea..182f2a4
Fast-forward
 Resources/bg_feedback.png    |  Bin 25813 -> 30154 bytes
 Resources/bg_feedback@2x.png |  Bin 18547 -> 23680 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
ApplematoMacBook-Pro:yhytWLAN Apple$ git push origin master
Counting objects: 34, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18), 3.30 KiB, done.
Total 18 (delta 13), reused 0 (delta 0)
To git@192.168.5.76:yhytWLAN.git
   7f24922..182f2a4  master -> master
ApplematoMacBook-Pro:yhytWLAN Apple$ 

抱歉!评论已关闭.