Git pull doesnt work as expected -


... because use wrong.

szenario: have local repository , remote repository (named staging). developed on local repository , committed , pushed remote repository. then, on remote repository, added file "newfiletest". expected when locally "git pull staging master", should download "newfiletest" file, doesnt.

hope :p i'm kinda new git.

so did work on local repository , did

git add -a git commit -m "embrace epic programming skills" 

then decided want push upstream remote did

git remote add <remote_name> <url> 

and then

git push -u <remote_name> <branch>  

git asks username , password authentication reasons , poof! pushed stuff upstream.

now then, decide make new file (ex. .gitignore, readme.md etc.) on git hub. , run

git pull  

this should fetch , merge changes on top of local repoistory


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -