git

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
git [2017/12/25 01:24] jzgit [2018/02/27 04:29] (目前版本) jz
行 3: 行 3:
 ===== Bare ===== ===== Bare =====
  
-convert existing git repo to bare repo+Convert existing git repo to bare repo
 <code> <code>
 mkdir repo.git mkdir repo.git
行 13: 行 13:
  
 ===== Archive ===== ===== Archive =====
 +https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export
 <code> <code>
 # local # local
行 50: 行 50:
 git fsck --unreachable ; Will show you the list of what will be deleted git fsck --unreachable ; Will show you the list of what will be deleted
 git gc --prune=now     ; Will actually delete your data git gc --prune=now     ; Will actually delete your data
 +</code>
 +
 +===== git shared repo =====
 +<code>
 +[core]
 +sharedRepository = 0666
 </code> </code>
  
行 59: 行 65:
 git svn dcommit git svn dcommit
 git svn rebase git svn rebase
 +</code>
 +
 +==== Stash ====
 +<code>
 +git stash show -p stash@{1}
 </code> </code>
  
  • git.1514136289.txt.gz
  • 上一次變更: 2017/12/25 01:24
  • jz