Reputation: 2193
Hi I have been scouring all the forums and search engines for doing what I thought to be simple. I am trying to pull all the changes from my master git repo into a remote branch. It does that but does not pull in the new files created. How on earth can I make sure that new files are added to the branch with
git pull
I tried:
git checkout master newfile.html
and
git checkout HEAD -- newfile.html
I thought that by default 'pull' would just update everything from the master new or not new, but it is obviously not the case. How do I do this?
Upvotes: 1
Views: 12826
Reputation: 2193
Hey thanks for your replies. It seems to have worked with all 3:
git checkout master
Already on 'master'
git merge master
git pull
Enter passphrase for key '/home/seytunn/.ssh/id_dsa':
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 7), reused 7 (delta 4), pack-reused 0
Unpacking objects: 100% (10/10), done.
From github.com:seytunn/my_rnnn
6fc621c..64afc61 master -> origin/master
Updating 6fc621c..64afc61
Fast-forward
css/main.css | 21 +++++++-
require.html | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 172 insertions(+), 1 deletions(-)
create mode 100644 require.html
Upvotes: 0