Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git Fetch

bipin23 May 16, 2019

Hi All 

I have started using a Bitbucket for a while but one command is keeping me in nightmare, which is a git fetch. I have gone through all the online blogs and examples and every where I found that git fetch is used to download the remote commits.

But I am quite confused here,my use case goes like this

when I create a new remote branch(say feature/101 directly online) and do a git fetch from local it brings up the remote branch(feature/101) into my local whereas if I change/add any file remotely (directly online editing) within that branch feature/101 and do a git fetch those files are not reflecting in my local copy. I know  I can use git pull to meet my requirement but  I really want to understand the real scope of git fetch.

 

Any answer from you all will be really appreciated.....

 

Thanks

 

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events