top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

git-rebranch new script

+1 vote
211 views

I made a small script for easier rebasing of development branches. It is useful in case you are developing in multiple (private) branches and you want to rebase your branches onto upstream often.

You can find it here:

https://github.com/dankeder/git-rebranch

How it works:

  1. Define the branch layout in a config file ".gitrebranch"
  2. Run "git rebranch"

For more information see the README file.

Let me know if you find it useful. Also, feel free to create a github issue in case you encounter any bugs or problems.

posted Jun 17, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
  • It's ripe with seasoned programmers who might find it interesting to scrutinize your code and spot problems with it.
  • Interesting scripts might make their way to the "contrib" section of the Git bundle, if enough people find it useful and there is some push for this.
answer Jun 17, 2013 by anonymous
Similar Questions
0 votes

I am using Git bash from version 1.8.3.msysgit.0, on a Windows 7x64 PC. I have an issue with executing git push if I have a post-receive script configured.
The content of the script is not really important, as if I have a script that contains only commented out lines (around 70 lines), my git push command is delayed with around 5 seconds.
I`ve tested the script on another PC and it is working fine. No delay at all. So there are some issues on my PC regarding how git processes remote scripts.
I took a wireshark trace with 2 scenarios on my PC:

 1. just execute `cat     
    post-receive` command in the git bash
 2. did a `real` git push

Results of the wireshark traces shows:

 1. Read AndX Request, FID: 0x228f, 1024 bytes at offset 0 (1024 bytes at time, always)
 2. Read AndX Request, FID: 0x21c9, 1 byte at offset 0 (1 byte, always)

Conclusion:
git push command reads the post-receive script in 1 byte chunks, which dramatically slows down the execution process.

If more information is required about my setup or configuration, I will provided it happily, but I think this 1 byte read is the main reason for the issue.

Has anyone seen something similar? Or have any clues what is going on?

0 votes

When I update my branch from master it pulls down several files, including some sass files. When I compile, however, gulp alerts me that I am missing .scss files.

I tested this by creating a new fresh branch and running gulp sass. This time there were no errors and I saw the missing .scss had been brought in.

Would anyone know why, on update, I am only getting some of the files from master?

+3 votes

Help me to resolve problem. I have master branch for remote repo. Also I can see files of this repo because I added file in hooks directory and added working directory, where I can see files. I want to create new branch and new working tree for this to check files.

...