I have a script called: CreateAdvancedRepositoryTabbed.sh which can be 
downloaded here:

https://github.com/SkybuckFlying/PascalCoin

It uses git clone --mirror technique to download all the remote branches 
(which are local to the server/remote) and to re-create them locally.

Then the refs are updated in step 6 and re-fetched in step 7.

What I find weird about all descriptions/tutorial I have read so far on the 
internet is it is not explained how tracking information can be uploaded 
and re-downloaded ?!?

So apperently during a normal git clone... tracking information is setup 
for the master branch. 

Is this an effect of the git clone command simply running git branch 
--setup tracking information for master.

Or is there a way to upload "local tracking information" and then later 
re-download it later from the server.

As to auto-re-create local tracking information after download ?

If this is not possible then I guess my only other option is to re-run the 
git commands

git branch --set-upstream-to=origin/PascalCoinMaster PascalCoinMaster

I also tried the alternative:

git push -u origin PascalCoinMaster

Also had no effect when re-download/re-creating the repo on a different 
virtual machine.

This tracking information is still lost on this different virtual machine.

So far I have not used tracking feature that much but I do start to see 
advantages in powershell and others/bash it can alert me that there are 
commits on the server that need to be fetch/pulled to stay up to date and 
avoid costly re-bases or mergers... and also... it reduces the ammount of 
typing with tracking setup I can  just type:

git pull

instead of

git pull origin PascalCoinMaster

^ which is also becoming a bit annoying and tiredsome but ok.

Anyway re-setting all the branch tracking information I case I create a lot 
of these tracking branches would be a bit weird ?!?

Especially if later these branches are deleted/destroyed. I don't plan on 
doing that yet because I believe in keeping history intact/stored but my 
repo is a bit of a mess since I am just having with fun and getting into 
it... no main flow strategy yet or tagging strategy... just trying out 
things and branching whatever the fok I want :)

Anyway I am a bit surprised about this lack of re-downloading tracking 
information.

If it's really not possible ? (Which I doubt ? Maybe it can be done 
manually in some config or file ?)

Then I may have to request this as a next feature for GIT next 
versionssszzz !

Would be a cool feature to have if I can type for example:

git fetch branch-tracking-information.

Bye for now,
  Skybuck.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/11819f74-d82c-4e59-8784-749653040c48n%40googlegroups.com.

Reply via email to