What is the best strategy for tracking along with a public project that you are making local changes to? I want to be able to put the public version on a private server, so that my devs can pull it from that server. To that end, I created a bare repository on my server, cloned […]
I downloaded a project in the form of a .zip file from a friend. I imported it into Eclipse and it’s all fine and the build goes smoothly. Now I want to put it into a remote GIT repository. However, there are lots of library files, IDE generated files, and misc. binaries in my workspace. […]
I have an app being developed on github. I want to opensource it. Currently we use a capistrano script to deploy to our staging & production servers. I am trying to figure out how we can put our config files in a separate repo, and still use capistrano to execute one touch deploys. The goal […]
I will soon open source a project. My problem though is that there were some credentials hard coded in the code. Of course, I removed them and now have a separate config file to handle credentials. I just can not publish the whole repository because of the commit history with the credentials. My idea was […]
I am trying to clone the newest possible Google Calendar source code from Android source code repo – this one. I cloned the master branch (the main cloning link) and spent like a week to fix all the error since it was earlier built by eclipse I saw that’s it super old version of google […]
Github says, “This branch is 10 commits ahead, 8 commits behind xyz:master”. How do I make it even with the master?
I often face this problem with git: I clone a git repo of some project. Then I make changes to some source file, but I don’t commit it, because my work is not complete. But I have to keep updating my repo to make it in sync with the master. So I do a ‘git […]
I need fork a branch of a specific project. I have already fork the main branch but now the mantainer has add a new branch for “Development” and I need to download the code and modify something and then send a pull request. How can I fork a branch?
I would like to browse it online. The official Google one is always preferred. In particular, i want to access https://android.googlesource.com/platform/libcore/+/froyo/luni/src/main/java/java/lang/String.java But as you can see in the list here, only gingerbread and later releases are available. https://android.googlesource.com/platform/libcore/+/gingerbread/luni/src/main/java/java/lang/String.java If there is really nowhere to browse it online, attach the code stub of public String replace(CharSequence […]
As far as I know, a patch is a file describing the differences between some files. It seem like a neat way to communicate changes in source code. But a git commit does that, and so much more. Why send patch files over the email when you could do pull requests (with all the associated […]