GitFlow Initialization Error On Windows with Source Tree - atlassian-sourcetree

When trying to initialize GitFlow with Source Tree, I am getting errors that it cannot find the "git" command. Installing GitFlow manually does not make a difference.

When Installing Git for Windows, include support for the Windows Command prompt. The new MinTTY interface is not the default for Source Tree and therefore causes the initialization of GitFlow to fail in Source Tree.
If you want to initialize GitFlow, you'll need to be able to access Git from Git Bash, which is enabled if you include support for the Windows command prompt.

Related

Cannot find git SCM in VS Code

According to this:
VS Code ships with a Git source control manager (SCM) extension
However, I can't see Git in my latest version of Code. Neither can I see it under "Install Additional SCM Providers...".
I tried putting the path to my own Git client but it still does not show:
What is needed to enable Git in Code?
I fixed the same issue on my Mac by disabling all plugins and enabling them again.

How to use git lfs with Visual Studio Team Services hosted build agents

I use git lfs to store the large files of my git repo. I then try to build this repo with hosted agents. My build is pretty simple. It has a single task: Execute PowerShell. In the invoked script, the first thing that I want to do is to fetch my lfs dependencies. I therefore have the following in my script:
& git lfs fetch
Unfortunately, my build fails with the following error:
2016-03-04T19:49:05.7021988Z ##[error]git: 'lfs' is not a git command. See 'git --help'.
2016-03-04T19:49:05.7031986Z ##[error]Did you mean this?
2016-03-04T19:49:05.7041987Z ##[error] flow
Since I can't install anything on hosted agents, how am I supposed to have git lfs available?
EDIT
In this issue, I am not talking about git lfs authentication problems as described here. I am strictly talking about the issue of calling git lfs.
Once you are able to call git lfs, look at this answer to solve the authentication problem.
Git LFS is now supported by default on the Hosted Build Controller. But you do need to enable it in your get sources step.
You get this error message because git-lfs isn't installed on Hosted Build Agent by default.
And since you are using Hosted Build Agent, it would be a little troublesome to install git-lfs via Chocolatey on it as you don't have administrator permission. An alternative way would be download the binary files for git-lfs directly and upload it into Source Control. Then you can invoke the git-tfs.exe with an absolute path in your script.
Here are some more details around the solution provided by Eddie. git lfs is not a built-in command. It is a git custom command.
When you call git lfs, git.exe does not know about the lfs command. So it looks in the PATH environment variable and searches for a program named git-lfs.exe. Once found, it calls that program with the provided argument.
So calling git-lfs.exe pull is equivalent to calling git.exe lfs pull.
The solution suggested is therefore to download git-lfs.exe, add it your git repo (it should obviously not be tracked by LFS), and call git-lfs.exe.
It is also possible to add the folder that contains git-lfs.exe to your path environment variable. This makes it possible to use commands like git.exe lfs pull as you usually do.
If you are allowed to install software and have internet access during build you might be able to install git-lfs using the Chocolatey package in a cmd / PowerShell task prior to your git-lfs operation.

How to use GitHub for Windows 2.0 with non-GitHub repositories

I just installed (as opposed to update) GitHub for Windows 2.0 and for the life of me I cannot find how to use it with non-GitHub repositories. In the past I have done this without issues using this guide. However with version 2.0 the layout has changed and I cannot find a UI to clone a repo that is not from GitHub. I guess I have to drop to the command line but I have no idea how to use git that way.
As you suggested, you can clone the repository with Git on the command line. To do so you can execute the following steps:
Start the Git shell (Start menu->GitHub, Inc->Git Shell on Windows 7, I'm not familiar with Windows 8 but I think it will show up when you type "Git Shell" on the start screen)
Make sure you are in the GitHub directory (C:\users\\Documents\GitHub). Otherwise use the cd-command to navigate there.
Use the clone command git clone user#domain.com:/path/repository.git with the clone-url for the project you want to add. (More information about cloning)
Start GitHub for Windows and go to tools and options->Options
Click Scan for repositories, if everything went right your cloned project shows up.
Make sure it is selected and click Add

Can't commit with Github Windows, no reason given

I have been forced to use other apps, and the command line since Github for Windows is not allowing me to commit changes. I would like to understand what's the problem, but I simply get a prompt with this message:
Commit failed
Failed to create new commit
Then, it gives me the option of go to the Git Shell or to cancel. While I am not an expert with the terminal, I am able to make commits when I choose to go to the Git Shell (or to any other application for that matter).
I am using Github 2.0.5 on Windows 7.
After an exchange with the Github for Windows developers, the issue has something to do with Windows inability to work with paths when they're too long. The node_modules folders generated by Node.js is the culprit of this issue in my particular case.
However, the node_modules folders in my repository are gitignored. The fact that even when gitignored they create a problem in Github for Windows means the developers have to address the situation.
I expect a response or a patch from the developers soon. They have been very helpful. In the meantime, I am using SourceTree as my Windows Git GUI.

TFS with mac os

I have to use TFS for my Mac machine for iPhone app development. So that I have used the following step as from the Git-TF_GettingStarted.html
Extract the contents of Git-TF-Release-Preview.zip to a folder on your local machine,
i.e. C:\git-tf on Windows, or /user/git-tf on Mac/Linux. for installation.
But while giving the command "git tf clone http://myserver:8080/tfs $/TeamProjectA/Main "
an error is coming as
git: 'tf' is not a git command.
Then I have removed the tf from the command, at that time it get worked and asked the username and password, but authentication get failed.
How can I resolve this issue?, if anybody has idea then please help me.
You haven't actually set your PATH variable, which is why you're getting the command not found problem.
If you've set your path, using, as an example: PATH=$PATH:$HOME/git-tf-2.0.2.20130214, then the git command will allow the sub-command tf, which should work like the documentation suggests, as in:
git tf clone …
will work once you've set the PATH variable, otherwise you'll have to reference the git-tf command directly.
The command that is extracted is git-tf, and git is smart enough to look for the git-tf command if you have set the PATH and try to use the operation git tf.
You better go with TFS Everywhere http://www.microsoft.com/en-us/download/details.aspx?id=4240
And use Eclipse like a client for your development in XCode.