Re: [git-users] High level usage question
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] How to checkout files from another branch, based on a filelist from a text file?
Konstantin Khomoutov flatw...@users.sourceforge.net writes: My problem is, that I can not see possibility to checkout files from another branch, based on a filelist from a text file. Once you have a text file with the list of file names, just do $ git checkout dev $ while read fname; do \ git checkout local_dev $fname; done dev_files.txt Even shorter: $ git checkout local_dev $( cat dev_files.txt ) If you're not using bash, use: $ git checkout local_dev `cat dev_files.txt` Dale -- 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] How to checkout files from another branch, based on a filelist from a text file?
On Sun, 17 May 2015 23:59:23 -0700 (PDT) Konrád Lőrinczi klorin...@gmail.com wrote: [...] I can imagine a solution: Checkout files listed in diff_dev+local-dev_files.txt from local_dev to dev branch. This way I could stash them, and commit by selected groups. My problem is, that I can not see possibility to checkout files from another branch, based on a filelist from a text file. Once you have a text file with the list of file names, just do $ git checkout dev $ while read fname; do \ git checkout local_dev $fname; done dev_files.txt -- 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
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.