git-pull

Where are the pull/push commands in GitHub for Windows client?

故事扮演 提交于 2019-12-04 16:46:50
问题 I've been using GitHub for Mac for a while and was about to help a colleague install it on Windows. I cannot find any menu or any button to initiate "push" or "pull" as I can on Mac. Only way I see it is to open a shell and execute git pull . But then, what's the point of the UI? What solved my problem? I switched to using SourceTree (http://www.sourcetreeapp.com) instead. It solved all my issues :) 回答1: It's in the top right of the app. For most cases you'll want to hit the sync button which

What's the best practice of going GIT when upstream is 100% CVS?

本秂侑毒 提交于 2019-12-04 16:26:53
I'm curious what's the best practice of keeping your occasional contributions to an OSS project in git (e.g., on github/bitbucket/gitlab), whilst the upstream is exclusively CVS. My take is that it's very convenient to simply commit CVS/{Entries,Repository,Root} directly into git , and then at any time and from any box, you can simply checkout your git repo (w/ git ), and then update from the real upstream with cvs up , which is exactly what I do with my OpenBSD ports-readmes fork , as well as mdocml . However, I've noticed that most people are quite surprised and puzzled to see these CVS

Restore git files deleted after git merge --abort

拥有回忆 提交于 2019-12-04 12:41:01
I've lost files added to git during "merge conflict" phase. Step by step: git pull git status Git informs me about "merge conflict", that's okay. Then I create a new file and add it to git. vi test.txt git add test.txt After that, abort merge: git merge --abort I have not found the file "test.txt" neither in directory, nor via "git fsck", nor "git reflog". Is it possible to restore the file? What have you tried with git fsck ? see this SO question : Recover files that were added to the index but then removed by a git reset The general answer is : the sequence of instructions you typed has

Git pull from another users working directory

丶灬走出姿态 提交于 2019-12-04 09:29:51
Is it possible to pull specific files or changes from another users working directory using thier Local IP address? e.g. git pull http://192.168.1.101/sandbox/somefile.php It should be noted that both users are using Windows XP. Thanks, P. Thanks to the response of both Rup's answer and eckes's answer, I've come up with the following so far: You'll need to know the IP address of the users PC 192.168.x.x (this will be the in the example below) and then you'll need to share the folder in Windows XP. Right-click the desired folder you want to share on the users PC and select Properties. Select

Using colon in `git pull origin <remote-branch> : <local-branch>` does not pull to correct branch?

让人想犯罪 __ 提交于 2019-12-04 08:48:41
Let's say I am on a different branch than <local-branch> , called <different-branch> . When I try to pull from a remote branch to a local branch, I do the following: git pull origin <remote-branch>:<local-branch> And, from my understanding this should pull into my <local-branch> , and not pull into <different-branch> . But, then when I check git log while I'm on <different-branch> , I see that those commits are from <remote-branch> ? How do I pull from a remote branch, into a local branch, when the local branch is different from the one that I cam currently on? Thank you. Using git pull with a

Resolve merge conflicts: Force overwrite all files

拥有回忆 提交于 2019-12-04 07:41:02
问题 I am working on a git repository by myself (so yes, I know the implications and the warnings of doing this) and somehow one of the trees got a commit after being pushed when it shouldn't have. Now I'm trying to pull back and it's complaining about hundreds of merge conflicts. Is there a way to tell git to forcefully overwrite any and all files locally that are coming from the remote server? Is there a faster way than doing git reset --hard HEAD~1 and then doing the pull? On that same note, is

Difference between git pull --rebase and git pull --ff-only

£可爱£侵袭症+ 提交于 2019-12-04 07:29:51
问题 Let's say origin/master has commit A--B--C and my local/master has commit A--B--D . What will happen if I use git pull --rebase ? What will happen if I use git pull --ff-only ? Is there any difference in the resulting commit tree ? 回答1: What will happen if I use git pull --rebase ? git pull --rebase is roughly equivalent to git fetch git rebase origin/master i.e. your remote changes ( C ) will be applied before the local changes ( D ), resulting in the following tree A -- B -- C -- D What

git checkout tag, git pull fails in branch

空扰寡人 提交于 2019-12-04 07:27:13
问题 I have cloned a git repository and then checked out a tag: # git checkout 2.4.33 -b my_branch This is OK, but when I try to run git pull in my branch, git spits out this error: There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream new origin/<branch> I want git pull to only update the

How to explain “git pull --rebase” in simple terms?

筅森魡賤 提交于 2019-12-04 04:11:43
I think I understand git pull and this is how I explain it in, what I call, "simple terms": Generally speaking, git pull is about merging a "remote" branch into a "local" branch. In more detail, git uses the content of the "remote" branch to "update" / "modify" content of the "local" branch. In even more detail, if a file has been modified in the "local" branch but not in the "remote" branch, then after the merge, the content of the file will be the same as the content in the "local" branch. The opposite is also true. If a file was modified on the "remote" branch but not in the "local" branch,

How do I use the --work-tree option with git? I keep getting an error

北城以北 提交于 2019-12-04 03:35:29
I have a normal repo where there is a working tree and a .git folder in the same directory as the working tree. I'm trying to run a git command from outside this location with the command git --git-dir=/path/to/repo/.git --work-tree=/path/to/repo pull /some/other/repo master but I keep getting the error fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree. . What am I doing wrong? This is a bug in earlier versions of Git. This problem should go away once you upgrade to 1.7.7.2 or later. From the commit that fixed the bug : You can't currently run git-pull or git-rebase