$ git review git: 'review' is not a git command. See 'git --help' - visual-studio-2010

I am using git for source control in visual studio 2010. I can use commands like "git status" , "git commit" but when i try to use "git review" i am getting the error as " git: 'review' is not a git command. See 'git --help'."
Help me please
Edit1: i am using "git review" to submit git branches (code) to gerrit for review.

Git review is an external command from git. It is not a command included in git code. You have to install it.
Please follow Git-review documentation to the installation if you intend to use it.

It means that review is not a valid command to be used with git.
For e.g. when you use git add . - git understands that you want to stage all the files that you have changed to be committed. add . is a valid commandment for git to do staging operation.
In similar fashion, review is not a valid command and thus git recommends you to lookout for help by running git --help
What do you intend to do with review command?
EDIT 1: As per comments, adding screenshot of area from where pull
requests are created on github.com

Related

VS Code not tracking file changes and says install git

extension: GitHub Pull Requests and Issues
Don't know why its behaving like this, git is installed... still its saying install git
showing:
Activating the Pull Requests and Issues extension failed. Please make sure you have git installed.
Go to setting and search git path
edit the setting.json in there, the last parameter git.path
find the git path with this command in terminal
which git
then reload the VS Code

git checkout -- <filename> doesn't recover a locally deleted symbolic link on Windows 10

So, yes, I am using Windows 10, when everyone around me at the office is using Linux/Mac. But I won't give up.
I deleted a Symlink which is part of the repo, that was locally created by "git clone" - (Read below why if you are bored)
Now when I run "git status" it says : "Deleted" for my symlinks. I want them back, so I tried the following :
git checkout .
git checkout --
git reset --hard HEAD
Nothing worked, they all completed without errors, but "git status" still shows the symlinks are deleted, and indeed "ls" shows they are gone. Any attempt to create them myself using "ln -s" (in git-bash) results in "typechange" in git status.
How can I get "git checkout ." or any other git command to restore the symlinks to be as they are in the repository?
So, yes, the timestamp should reveal I posted the question when I already knew the answer, but, as I spent almost two hours trying to resolve this, and the answer is not on stackoverflow (yet) I decided I shell post my question anyway and answer it.
Eitam#DESKTOP-JJOOD64 MINGW64 /d/git/my-repo (master)
$ git checkout .
Eitam#DESKTOP-JJOOD64 MINGW64 /d/git/my-repo (master)
The command seems to have completed with no errors or problems, but "git status" will still show my symlinks are not there.
The solution :
run git-bash as Administrator!!! and use "git checkout ." or "git reset --hard HEAD" or any git command that was supposed to work in the first place.
It's quite annoying that git-bash didn't complain that it's missing Administrator privileges. I found out that it's needed when I tried to work around the problem by creating the symlinks myself using "mklink" which told me I need admin priv...

ReadMe file won't allow me to commit and push xcode changes to github

I have an existing xcode project and repo on Github. I recently added a ReadMe file which was suggested by Github but now I can no longer commit and push changes to Github. I keep getting an out of date message. How do I fix this problem?
I had the same experience of adding README.md with the same error.
If you don't want to git pull, because the remote version in Github is outdated.
You can also force push all local branches using:
$ git push -f origin master
The following commands in the Terminal will push your local Xcode project to remote Github.
cd <drag location folder of project>
git init
git push -f origin master
You need to git pull.
If you're using the command line, navigate to the directory of the repository and run git pull. If you're using another interface, the steps may be a bit different.

git pull is not working on msysgit client?

I am using msysgit client, I am able to fetch,push but when I try to pull it shows
git: 'pull' is not a git command. See 'git --help'.
I tried for git --exec-path and it gives C:\git-client/libexec/git-core, this path exists but still I am not able to pull. Any idea?
As stated in comment above:
git pull is (usually) shorthand for doing a fetch then merge.
Check that git fetch works first.
Further later research shows that this may be a bug in a specific version of msysgit, https://code.google.com/p/msysgit/issues/detail?id=249 So try upgrading that also (always prudent advice).
Additionally, a few googles for "git: 'pull' is not a git command" turned up quite a few choices on various fixes, based on which platform you are working on, but most turned out to be a missing path to git-core, so also check those out.

Missing git difftool for windows git bash

I want to use difftool as the tool for dealing with git diff's. Specifically, I am used to using Vimdiff on an Linux environment. It doesn't seem that any tools come with git on Windows. I am running a Git Bash and I got the following message:
:~/rush$ git difftool
This message is displayed because 'diff.tool' is not configured.
See 'git difftool --tool-help' or 'git help config' for more details.
'git difftool' will now attempt to use one of the following tools:
kompare emerge vimdiff
What difftools can I use on Windows?
As suggested by #Mah, I did set this up with BeyondCompare and it works! See how to do it here:
http://www.scootersoftware.com/support.php?zz=kb_vcs

Resources