Failing pulling existing Repo in Visual Studio - visual-studio

I downloaded a branch as zip file from git succesfully. After this I cloned repo from in the section below. But still I cant see all the branches that I wanna see. What's the problem here?
ss

try using,
git clone {repo-URL}
In this way the cloned directory will be a git repository with all the git history and branches...

Related

.xcworkspace not showing in git repository

I have a project which has some of the pods installed.
I can see the .xcworkspace folder in my local workspace.
But it is not present in the remote git repository.
And I am not able to add it to git by git add .xcworkspace/*.
How can I add it to the local repository and then push it to remote?
After cloning from git and after pod install the .xcworkspace will automatically come.You don't have to worry about. try...

How to create to create a symlink of a git repo on windows??

Is it possible to create a symlink of git repo on windows so that i don't have to clone a repo.
means without cloning a repo can i just edit a foriegn repo
(friends repo) from my windows computer using symlink.
Actually i don't know such procedure, if any one can tell me how to do it properly.
Open git bash and write this command:
git worktree add /<path>/<name>
for example:
git worktree add /tmp/link2
# find out where is the folder:
mount
The 3rd line will show you the path on the disk
Now you will have second folder with reference to the original repository.

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 add` doesn't add files to track on Windows

I have a local folder which I wanted to convert to a Git repository and then push to a remote repository. I ran the command git init in the project folder and then used the command git add .. When I run the command git status, I get the message that I have untracked files. I ran the git add . command multiple times but I see the same message.
What should I do to track these files so I can push to a remote repo?
I'm using Windows 8.1 x64 machine.
UPDATE: Please see the answer below.
I used the command git config --system core.longpaths true to fix the error for longer file names. I was able to add all files after making that change.

Git Repository Created Manually Can't Commit

After creating a Git Repository using the terminal application using the following commands
Focusing the shell on the project directory
$ cd ~/Desktop/Myproject
Setting up the Git Repository
$ git init
Preparing the files for the "staging area"
$ git add .
Making my first commit
$ git commit -m 'Initial Checkin'
When I now try to commit in Xcode, I get
The operation could not be performed because no valid working copies were found.
Please verify that your files are under source control and try again.
But if I modify any of the project files and $ git status in to shell, it will tell me that what ever file I fiddled around with in Xcode has been modified and the I can commit from there. Why not in Xcode??
I had a loot at Can't commit changes to local git repository but the suggestions did not solve the problem.
If restarting XCode doesn't help, since you are saying it works fine through terminal, try adding it again in XCode.
go to Organzier--> Repositories --> Add Repository (bottom left corner)-->Set the correct values and local path to your project
my guess is, since you created the repository outside XCode, for some reason, its not detecting it right, or is not having the right permissions. Re-adding the repository through XCode may help solve this issue for you.
I had this happen once, and the issue was cleared by quitting and re-opening Xcode.

Resources