【Linux】git、repo、svn、adb以及其他常用命令

來源:互聯網
上載者:User

標籤:linu   only   home   輸出   回退   sof   span   res   form   

一、git

  git reset --soft <版本號碼>             回退提交至commit的代碼

  git format-patch -1 <版本號碼>           產生單個patch
  gitformat-patch<版本號碼>           產生某一版本之後的多個patch(不包含本身)

  git am patch/*.patch打patch

 

  【git commit --amend --reset-author】

  git log --name-only               顯示commit資訊,同時顯示出修改的檔案

  git branch -a                 查看遠程分支
  git checkout -b ***              切換遠程分支

  git checkout -b *** caf/pmc_***_dev       切換分支

 

二、repo

  repo sync + git倉路徑             只下載某個git倉代碼

                        (git倉路徑可以參考.repo下的manifest.xml檔案)

 

三、svn

  svn update                  SVN更新檔案: 在/home/user/svn/RM181/TSJP/下執行命令

  SVN上傳檔案步驟:
      svn status
      svn add 檔案名稱
      svn commit -m "描述" 檔案名稱

 

四、adb

  adb logcat -v time > /home/user/案頭/log_2018.2.25_1107.txt          輸出log檔案

  adb install ×××.apk                         電腦給手機安裝apk軟體包

 

五、其他常用命令

  find -name "檔案"              尋找檔案

  free                 查看記憶體使用量情況

  

  apt-get install multimail          安裝軟體 multimail
  apt-get remove multimail         卸載軟體 multimail

 

【Linux】git、repo、svn、adb以及其他常用命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.