第一次将本地项目同步到git服务器

Posted yucaijiang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第一次将本地项目同步到git服务器相关的知识,希望对你有一定的参考价值。

第一次将本地项目同步到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$ 

 

以上是关于第一次将本地项目同步到git服务器的主要内容,如果未能解决你的问题,请参考以下文章

如何用命令将本地项目上传到git和ssh配置

Git每天1分钟系列——Git本地与远程服务器介绍

Git 操作记录

git 使用记录

Git将本地项目同步到github

利用github和git命令,将本地项目共享到服务器上