Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Git-scm , Github (http://www.chiefdelphi.com/forums/showthread.php?t=109936)

tomy 09-12-2012 15:00

Git-scm , Github
 
Does anyone know of a video (pref youtube) on how to set up git-scm and github to upload code and merge it. I tried to use their book online but its either outdated or I'm doing it wrong -_-

BigJ 09-12-2012 15:02

Re: Git-scm , Github
 
https://help.github.com/ has a lot of guide on how to set up Git and use github. Particularly the "Bootcamp", "Setup", and "Using Git" sections.

plnyyanks 09-12-2012 15:23

Re: Git-scm , Github
 
http://learn.github.com/ and http://git-scm.com/documentation also have some good tutorials. Check 'em out.

bob.wolff68 09-12-2012 15:25

Re: Git-scm , Github
 
Tomy,
What do you mean by 'upload code and merge it' ? Git handles merging locally and then uses a concept of 'push' to send the results to the github servers. If you're on Windows, I would suggest that SmartGit is a good tool which integrates nicely with github. It is sometimes confusing, but for the most part is a great tool which is continuing to be improved. It is also free to use for educational use.

dcarr 09-12-2012 15:30

Re: Git-scm , Github
 
Quote:

Originally Posted by bob.wolff68 (Post 1200085)
Tomy,
What do you mean by 'upload code and merge it' ? Git handles merging locally and then uses a concept of 'push' to send the results to the github servers. If you're on Windows, I would suggest that SmartGit is a good tool which integrates nicely with github. It is sometimes confusing, but for the most part is a great tool which is continuing to be improved. It is also free to use for educational use.

GitHub also has their own app for Windows which has a very intuitive interface. However, I have found it buggy in practice. YMMV.

BigJ 09-12-2012 15:38

Re: Git-scm , Github
 
Quote:

Originally Posted by dcarr (Post 1200087)
GitHub also has their own app for Windows which has a very intuitive interface. However, I have found it buggy in practice. YMMV.

The GUI alternative I prefer in Windows is TortoiseGit. Netbeans has built-in GUI git support for Java teams. There are Eclipse plugins for Git but I am not sure if they work in Windriver.

tomy 09-12-2012 16:21

Re: Git-scm , Github
 
I'm just curious because my team wants to use a version share server. With github all they would have to do is pull down the code and upload when they are done right? If that is true then who/what manages the merges or the back ups?

BigJ 09-12-2012 16:32

Re: Git-scm , Github
 
Quote:

Originally Posted by tomy (Post 1200094)
I'm just curious because my team wants to use a version share server. With github all they would have to do is pull down the code and upload when they are done right? If that is true then who/what manages the merges or the back ups?

Git is a distributed version control system. A common workflow is to have one repository that acts as the common "server" which you keep on github. However, anyone that participates clones the repository and has a full copy of the repository on their machine. They make changes and commit them to their own repository. Before joining the "server" code one fetches the latest updates from the server to solve any conflicting merge issues, then "pushes" their changes to the server. Depending on your setup different users can have push rights, or may be required to make a pull request for an administrator to pull the changes into the server repository.

F22Rapture 09-12-2012 16:34

Re: Git-scm , Github
 
Quote:

Originally Posted by tomy (Post 1200094)
I'm just curious because my team wants to use a version share server. With github all they would have to do is pull down the code and upload when they are done right? If that is true then who/what manages the merges or the back ups?

Github is a distributed version control system, which means that each user has their own local copy of the code where they make their changes. Contrast that with Subversion which uploads commits to a central server as they are made.

So, you would "pull" the changes into your local copy, merge the branches on your local copy, and then "push" those changes to the remote repository. After ensuring that everything compiles and works properly, of course.

F22Rapture 09-12-2012 18:03

Re: Git-scm , Github
 
To answer the original question:

Part 0, How to set up Git
https://www.youtube.com/watch?v=vaNGbk6HN9Y

Part 1, Basic functions of Git
https://www.youtube.com/watch?v=DQUcmNO4diQ

Part 2, Advanced functions of Git
https://www.youtube.com/watch?v=Y7qPI9Nx3nc

Part 3, Git workflow
https://www.youtube.com/watch?v=3nSoTC3GHn8

Part 3.5, Multiple-user projects
https://www.youtube.com/watch?v=7RrP9kbHFnc

Part 4, Resolving merge conflicts
https://www.youtube.com/watch?v=4De86_igTTk

Part 5, Merge conflicts continued
https://www.youtube.com/watch?v=nUuOitvzFrQ

Part 6, Branching
https://www.youtube.com/watch?v=MQ9Yv8csyMU


All times are GMT -5. The time now is 18:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi