Development using git:Developer repositories: Difference between revisions
m (Created page with "Some git repositories of Alpine developer are hosted at [http://git.alpinelinux.org/ git.alpinelinux.org].") |
No edit summary |
||
Line 1: | Line 1: | ||
Some git repositories of Alpine developer are hosted at [http://git.alpinelinux.org/ git.alpinelinux.org]. | Some git repositories of Alpine developer are hosted at [http://git.alpinelinux.org/ git.alpinelinux.org]. | ||
== Git Push (Distributed Workflows) == | |||
If working with [http://book.git-scm.com/3_distributed_workflows.html Distributed Workflows] you would 'pull' from public repo, 'push' to another publically accessable repo ''(where you have write access)'', main developer ''(who has write access to public repo)'' 'pulls' you changes from your pub.accessed.repo into the public repo. | |||
To make it easier for you to work, you can configure 'git push' to push your work to your publically accessable repo ''('git pull' would still pull from same repo as you cloned from)''. | |||
{{cmd|cd /your/private/repo/where/you/work/reponame | |||
git config remote.origin.pushurl "ssh://user@dev.alpinelinux/home/user/cgit/reponame.git"}} | |||
Now 'git pull' pulls the public repo, and 'git push' pushes to '''your''' public repo. | |||
{{Note|The path where you want to push to should first be prepared with 'git clone --bare ...' as described below in section 'Upload the new project'}} |
Revision as of 14:55, 5 July 2011
Some git repositories of Alpine developer are hosted at git.alpinelinux.org.
Git Push (Distributed Workflows)
If working with Distributed Workflows you would 'pull' from public repo, 'push' to another publically accessable repo (where you have write access), main developer (who has write access to public repo) 'pulls' you changes from your pub.accessed.repo into the public repo.
To make it easier for you to work, you can configure 'git push' to push your work to your publically accessable repo ('git pull' would still pull from same repo as you cloned from).
cd /your/private/repo/where/you/work/reponame git config remote.origin.pushurl "ssh://user@dev.alpinelinux/home/user/cgit/reponame.git"
Now 'git pull' pulls the public repo, and 'git push' pushes to your public repo.
Note: The path where you want to push to should first be prepared with 'git clone --bare ...' as described below in section 'Upload the new project'