以下のコマンドでは、私はローカルリポジトリを更新しようとしています。しかし、どうすればいいか教えてください。 SVNでは、トランクから最新のファイルを取得するのに svn update
を使用しますが、gitで同じことを行う方法
以下はコマンドです
mkdir git_tut
git init --bare
git clone git_tut rep1
cd rep1
//create a file testfile.txt and add it
//This file contains the content as from rep
git add testfile.txt
git commit -a -m "comments"
git push origin master
//Now cd ../ and create a new reopo as rep2
git clone git_tut rep2
//Now in rep2
//In file testfile.txt add a new line and push to git_tut
rep1の新しいファイルを svn up
のように更新するにはどうすればいいですか?