top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Having trouble understanding how Git works?

0 votes
193 views

I'm trying to integrate some type of source code versioning. I come from a VSS background, where our workstations would connect to a server and 'check out' a solution/project into my workstation. Essentially, 'check out' the code into my PC and then ('check in') back to the server.

Anyways, I'm trying to understand how Git works. I assumed that I would install Git in the server (where all source code will reside), and then I'd install an add-on to VS2010 in my workstation to connect to the server. From VS2010 I would add my solution to the server, and do checkins/checkouts.
So, I installed this version of Git in the server [1], and I can see a box that asks me to create a new repository. What I don't seem to understand is how I can connect locally (from my VS2010) to that server. In my workstation (VS2010), I installed Git Source Control Provider, but I don't see any option that lets me connect to the server.

posted Jun 13, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

Is there any detailed document about how git p4 toolset works? I am curious how it tracks depot paths, bidirectional changes etc. I am totally confused about it now.

The problem I face is after creating git repository with "git p4 clone," I added several files into the repository. The folder of the files in Git has no corresponding Depot path in P4 client view configuration, and everytime I tried to use "git p4 submit" to sync changes back to P4, I got errors saying "error: filexxx: already exists in working directory". Anyone can guide me how to fix this issue?

+1 vote

I'm checking if a user is an admin, and then I will show a delete button if he is. For whatever reason, it's automatically setting the boolean to true. It says is_admin: false in the console when I pull up the user's record.

Check status of user
def is_admin?
 self.username
end

view method

Have any ideas to why the method is still showing the button?

0 votes

I have a problem with an already committed file into my repo. This git repo was converted from svn to git some years ago. Last week I have change some lines in a file and I saw in the diff that it is marked as binary (it's a simple .cpp file). I think on the first commit it was detected as an utf-16 file (on windows). But no matter what I do I can't get it back to a "normal text" text file (git does not detect that), but I is now only utf-8. I also replace the whole content of the file with just 'a' and git say it's binary.

Is the only way to get it back to text-mode?:
* copy a utf-8 version of the original file
* delete the file
* make a commit
* add the old file as a new one

I think that will work but it will also break my history.

Is there a better way to get these behavior without losing history?

...