提交原本地專案到遠端git
需求:
比如:我在本地有個專案一直開發,開發的差不多了,我需要提交到遠端git倉庫,遠端git倉庫,我已經建好了一個叫做
recorder-manager的專案,我本地的專案都在目錄recorder上,操作如下:
1、首先進入到對應的目錄
2、在對應的目錄中執行 git init
3、把需要新增到git上的庫的檔案,執行add操作,比如我需要把src/下面的所有檔案以及 pom.xml檔案全部上傳到git上
git add src/
git add pom.xml
4、git commit
#新增了相關注釋
git commit -am 'frrst commit recorder manager project'
5、把當前專案push到遠端git倉庫
ss:~ wqp$ cd /Users/wangqiupeng/Documents/workspacenew/recorder
ss:recorder wqp$ ls
catalina.base_IS_UNDEFINED pom.xml src target
ss:recorder wqp$ git init
Initialized empty Git repository in /Users/wangqiupeng/Documents/workspacenew/recorder/.git/
ss:recorder wqp$ git add src/
ss:recorder wqp$ git add pom.xml
ss:recorder wqp$ git commit -am 'frrst commit recorder manager project'
[master (root-commit) 1e786df] frrst commit recorder manager project
23 files changed, 848 insertions(+)
create mode 100644 pom.xml
create mode 100644 src/main/.DS_Store
create mode 100644 src/main/java/cc/cloudp/record/manage/entity/Participant.java
create mode 100644 src/main/java/cc/cloudp/record/manage/service/CallRecorderService.java
create mode 100644 src/main/java/cc/cloudp/record/manage/service/impl/CallRecorderServiceImpl.java
create mode 100644 src/main/java/cc/cloudp/record/manage/service/test/TestJson.java
create mode 100644 src/main/java/cc/cloudp/util/ConfigManager.java
create mode 100644 src/main/java/cc/cloudp/util/SpringUtil.java
create mode 100644 src/main/java/dubbo/Application.java
create mode 100644 src/main/java/dubbo/service/impl/RecorderServiceImpl.java
create mode 100644 src/main/java/jni/RecorderHandler.class
create mode 100644 src/main/java/jni/RecorderHandler.java
create mode 100644 src/main/java/jni_RecorderHandler.cpp
create mode 100644 src/main/java/jni_RecorderHandler.h
create mode 100755 src/main/java/libRecorderHandler.dylib
create mode 100644 src/main/java/untitled
create mode 100644 src/main/resources/applicationContext.xml
create mode 100644 src/main/resources/config.properties
create mode 100644 src/main/resources/dubbo/zookeeper/applicationContext-dubbo-consumer.xml
create mode 100644 src/main/resources/dubbo/zookeeper/applicationContext-dubbo-provider.xml
create mode 100644 src/main/resources/logback.xml
create mode 100644 src/main/webapp/WEB-INF/web.xml
create mode 100644 src/main/webapp/index.jsp
ss:recorder wqp$ git remote add orgin git@gitolite:recorder-manager
ss:recorder wqp$ git remote -v
orgin git@gitolite:recorder-manager (fetch)
orgin git@gitolite:recorder-manager (push)
ss:recorder wqp$ git push orgin master
Counting objects: 46, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (37/37), done.
Writing objects: 100% (46/46), 13.55 KiB | 0 bytes/s, done.
Total 46 (delta 1), reused 0 (delta 0)
To gitolite:recorder-manager
* [new branch] master -> master
ss:recorder wqp$
相關文章
- Git拉取遠端分支到本地Git
- git 本地push到遠端倉庫Git
- 【GIT】使用Git命令視窗將本地工程提交至遠端GitHubGithub
- 將本地專案推送到遠端git新倉庫Git
- 使用git初始化本地倉庫並提交到遠端分支Git
- 一個專案push到多個遠端Git倉庫Git
- Git同步遠端fork的專案Git
- git 從遠端倉庫指定分支clone程式碼到本地Git
- git第一次提交程式碼到遠端倉庫Git
- git 更新本地的遠端分支列表Git
- Git 簡潔教程(1):本地專案如何與 GitHub 遠端倉庫互連?Github
- [圖文教程] 使用Git 提交專案到碼雲Git
- 使用git將本地專案上傳到githubGithub
- git拉取專案以及提交專案Git
- Git 解決本地遠端版本衝突Git
- github建立repo,本地匯入git專案到githubGithub
- git push到遠端倉庫Git
- git切換到遠端分支Git
- 在vs code透過git提交檔案至遠端倉庫(github)Github
- git 將本地專案提交到第三方簡單操作Git
- git上傳到遠端有部分檔案未上傳Git
- git本地倉庫關聯遠端倉庫Git
- 關於本地專案上傳到碼雲和GitGit
- 使用Git工具,實現上傳本地專案到GitHubGithub
- 如何用命令將本地專案上傳到gitGit
- 將本地的專案提交github上Github
- git本地分支與遠端分支名稱不相同,推送到遠端Git
- Git下如何找回未提交到遠端的程式碼Git
- git 提交vendor目錄至專案Git
- git clone一個laravel的專案到本地並執行GitLaravel
- Git 本地推送遠端失敗 non-fast-forwardGitASTForward
- Git 操作——如何刪除本地分支和遠端分支Git
- git 修改本地倉庫的遠端倉庫地址Git
- linux採用scp命令拷貝檔案到本地,拷貝本地檔案到遠端伺服器Linux伺服器
- Git強制推送程式碼到遠端Git
- git遠端分支回滾到指定版本Git
- 實現git版本控制中專案某一個檔案可以不提交,只在本地git生效,不影響線上gitGit
- Jenkins部署Web專案到遠端tomcatJenkinsWebTomcat