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
Git will automatically setup the remote
originwithin your cloned repository, and configure your branches to merge from their equivalents onoriginwhen you pull.All you’ll have to do is
git pullin this case.