git-remote

how can I do a git pull in the gitg / gitx visual tool?

狂风中的少年 提交于 2019-12-18 11:52:37
问题 I can do a push using gitg and push my code to the remote master branch but I can't see any option to do a git pull . I am on Ubuntu 10 and 11 回答1: You cannot directly pull from git gui , but given than a pull is a fetch followed by a merge , you can fetch the remote (in the remote menu and fetch from ), and then merge the remote branch into yours (Merge menu and Local merge , select tracking branch ). 回答2: In gitg 0.2.4, you cannot pull directly, so you also fetch and merge: fetch by going

git push to remote branch

拟墨画扇 提交于 2019-12-18 09:56:10
问题 Folks, I had cloned a repo. I created a branch out of it to work on a feature by issuing the following command: git branch fix78 then I worked on that branch by git checkout fix78 I continued to make commits to this local branch. Now I wanted to push this to the repo and hence I issued the following command: git push origin master:fix78 I viewed the repo from a web browser and saw that a new branch called fix78 was created on the repo. But it did not have any of my commits that I had made.

Access the changed files path in git pre-receive hook

删除回忆录丶 提交于 2019-12-18 08:18:44
问题 I'm writing a git pre-receive hook on the remote repo to make sure pushed code is consistent with our company's internal guidelines. I'm able to find all the files that are to be checked when a pre-receive hook is fired, however, I don't have the path to these files to open them using normal file operations(e.g. cat git_working_directory/file_name would throw No such file or directory error). The application which validates the code requires the file path as an argument so that it can open

Forcing Remote Repo to Compress (GC) with Git

ぃ、小莉子 提交于 2019-12-18 04:06:09
问题 I'm using Git to version a series of binary files. They compress pretty well, but my central repos do not seem to be compressing when I push to them. They're eating up a decent amount of my quota, so I was looking to see if there was a way to force the remote repo to do a GC. Is this possible? I'm working on Project Locker so I don't believe I have SSH access to go in and GC the repo myself. Any ideas? Thanks. 回答1: If you can't run git gc yourself, you're going to have to trick it into

Forcing Remote Repo to Compress (GC) with Git

佐手、 提交于 2019-12-18 04:06:07
问题 I'm using Git to version a series of binary files. They compress pretty well, but my central repos do not seem to be compressing when I push to them. They're eating up a decent amount of my quota, so I was looking to see if there was a way to force the remote repo to do a GC. Is this possible? I'm working on Project Locker so I don't believe I have SSH access to go in and GC the repo myself. Any ideas? Thanks. 回答1: If you can't run git gc yourself, you're going to have to trick it into

How do I get `git clone --recursive` to recreate submodules' remotes and branches?

寵の児 提交于 2019-12-18 03:09:09
问题 I have a project with a handful of submodules. Many of them are cloned from a GitHub fork to which I've added a branch for my custom mods. A typical setup is like thus: In local folder: MyProject1/Frameworks/SomeAmazingRepo/ $ git branch -vva *my-fork 123456 [my-fork/my-fork] Latest commit msg from fork master abcdef [origin/master] Latest commit msg from original repo remotes/my-fork/my-fork 123456 [my-fork/my-fork] Latest commit msg from fork remotes/my-fork/master abcdef [origin/master]

Using git to publish to a website

喜夏-厌秋 提交于 2019-12-17 22:52:57
问题 I used this guide to use git to autopublish my changes on my website when I push to my remote origin git repository: http://www.lwp.ca/james/2010/03/using-git-to-manage-online-website-projects/ Here's my /hooks/post-update file: cd ../../public_html/dir/wbg env -i git pull Here's my directory structure: /home/git/wbg.git <-- my remote git repository /home/public_html/dir/wbg <-- my web folder When I run git push origin master The repository updates but my web folder is still empty. Any ideas?

Git - error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly

匆匆过客 提交于 2019-12-17 22:46:34
问题 I am using ubuntu 11.10 machine. I have installed git of version 1.7.7.1. I am using git-cola to push and pull my code and I was able to commit and push my changes successfully. Now, I have changed my machine and my new system is with the same above configurations. (Ubuntu 11.10 machine and git version 1.7.7.1). In the new machine, I have issues on git push . I got the following error message when I tried to push my code: error: RPC failed; result=22, HTTP code = 401 fatal: The remote end

How can I push a local Git branch to a remote with a different name easily?

天大地大妈咪最大 提交于 2019-12-17 17:18:36
问题 I've been wondering if there's an easy way to push and pull a local branch with a remote branch with a different name without always specifying both names. For example: $ git clone myrepo.git $ git checkout -b newb $ ... $ git commit -m "Some change" $ git push origin newb:remote_branch_name Now if someone updates remote_branch_name, I can: $ git pull And everything is merged / fast-forwarded. However, if I make changes in my local "newb", I can't: $ git push Instead, I have to: % git push

Git - What is the difference between push.default “matching” and “simple”

你离开我真会死。 提交于 2019-12-17 06:22:08
问题 I have been using git for a while now, but I have never had to set up a new remote repo myself and I have been curious on doing so. I have been reading tutorials and I am confused on how to get "git push" to work. If I simply use git push it asks me to see up a default branch(?) to point to? What is the difference between these two options it supplies me with? git config --global push.default matching git config --global push.default simple Matching just pushes whatever branches I have on my