Re: [git-users] High level usage question

2015-05-18 Thread John Bleichert


On Monday, May 18, 2015 at 5:58:47 AM UTC-4, Konstantin Khomoutov wrote:

 On Sun, 17 May 2015 17:31:03 -0400 
 wor...@alum.mit.edu javascript: (Dale R. Worley) wrote: 

  John Bleichert jblei...@gmail.com javascript: writes: 
 snip

 

 Basically, that's what 

   git remote -v show remote 

 does: it reaches for the server behind remote asks it for the 
 refs/heads/* it has, compares them to the local heads, including their 
 tracking state, and outputs the results in a human-readable form. 


Thanks for all the replies - I appreciate it. 

Konstantin's advice above seems to do the trick, though I still have some 
reading to do...

John

$ git remote -v show origin
* remote origin 
   
  Fetch URL: bitbucket.org...   

  Push  URL: bitbucket.org:..
  HEAD branch: master
  Remote branch:
master tracked
  Local branch configured for 'git pull':
master merges with remote master
  Local ref configured for 'git push':
master pushes to master (local out of date)
 

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] High level usage question

2015-05-18 Thread Konstantin Khomoutov
On Sun, 17 May 2015 17:31:03 -0400
wor...@alum.mit.edu (Dale R. Worley) wrote:

 John Bleichert jbleich...@gmail.com writes:
  I understand that the underlying git principle is that everything
  is local. Is there really no way to compare local to remote?
 
  Alternatively, should I be branching and merging every time I
  switch machines? This seems a strange way to use the tool.
 
  As I said - hi level question and, otherwise, everything works
  fine. 
 
  Am I missing something fundamental?
[...]
 OTOH, if you want to check that *every* ref in your repository is the
 same as the ref of the same name in the remote repository, you've got
 to find a command that will list all the refs in the remote
 repositories and their values, and then compare those values with the
 local values.

Basically, that's what

  git remote -v show remote

does: it reaches for the server behind remote asks it for the
refs/heads/* it has, compares them to the local heads, including their
tracking state, and outputs the results in a human-readable form.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.