第一次将项目传到服务器,第一次将本地项目同步到git服务器(示例代码)
第一次将本地项目同步到git服务器Last login: Mon Sep 3 09:48:44 on ttys003localhost:~ dajiang$ cd desktoplocalhost:desktop dajiang$ cd communitylocalhost:community dajiang$ git initReinitialized existing Git reposit.
第一次将本地项目同步到git服务器
Last login: Mon Sep 3 09:48:44 on ttys003
localhost:~ dajiang$ cd desktop
localhost:desktop dajiang$ cd community
localhost:community dajiang$ git init
Reinitialized existing Git repository in /Users/dajiang/Desktop/community/.git/
localhost:community dajiang$ git add .
localhost:community dajiang$ git commit -m "first commit"
[master 58ac89d] first commit
2526 files changed, 132033 insertions(+), 47 deletions(-)
create mode 100644 Podfile
create mode 100644 Podfile.lock
create mode 100644 Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h
create mode 100644 Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m
create mode 100644 Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h
create mode 100644 Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m
create mode 100644 Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h
create mode 100644 Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m
create mode 100644 Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h
create mode 100755 community/Vender/SWQRCode/Config/SWQRCodeConfig.h
create mode 100755 community/Vender/SWQRCode/Config/SWQRCodeConfig.m
create mode 100755 community/Vender/SWQRCode/Config/SWQRCodeManager.h
create mode 100755 community/Vender/SWQRCode/Config/SWQRCodeManager.m
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/Root.plist
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/en.lproj/Root.strings
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/en.lproj/[email protected]
create mode 100755 community/Vender/SWQRCode/SWQRCode.bundle/en.lproj/[email protected]
create mode 100755 community/Vender/SWQRCode/View/SWScannerView.h
create mode 100755 community/Vender/SWQRCode/View/SWScannerView.m
delete mode 100644 community/ViewController.m
create mode 100755 community/tools/AF/API.h
create mode 100755 community/tools/AF/API.m
create mode 100755 community/tools/AF/Singleton.h
create mode 100644 community/tools/NSString+PinYin.h
create mode 100644 community/tools/NSString+PinYin.m
create mode 100755 community/tools/UIButton+countDown.h
create mode 100755 community/tools/UIButton+countDown.m
localhost:community dajiang$ git remote add origin http://192.168.16.110:9000/community/iOS.git
localhost:community dajiang$ git pull --rebase origin master
fatal: Couldn‘t find remote ref master
localhost:community dajiang$ git push -u origin master
Counting objects: 2161, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2084/2084), done.
Writing objects: 100% (2161/2161), 85.61 MiB | 123.00 KiB/s, done.
Total 2161 (delta 504), reused 0 (delta 0)
remote: Resolving deltas: 100% (504/504), done.
To http://192.168.16.110:9000/community/iOS.git
* [new branch] master -> master
Branch ‘master‘ set up to track remote branch ‘master‘ from ‘origin‘.
localhost:community dajiang$ git status
On branch master
Your branch is up to date with ‘origin/master‘.
nothing to commit, working tree clean
localhost:community dajiang$
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)