Do you need a 'remote update' before doing a 'pull' in Git

Assuming I've done the following from c:\, what is proper way to get the latest code from the remote origin?

# Create repo...
mkdir Test
cd Test
git init
...create files
git add .
git commit -a -m "Init Commit"

# Clone repo...
cd ..
git clone Test TestClone

# Edit original
cd Test
...edit files
git commit -a -m "Init Edit"

# Go back to Clone
cd ..\TestClone

# Get latest code
# Now what??? pull or update then pull
5
задан Terry 29 April 2011 в 14:22
поделиться