- Git homepage - http://git-scm.com/
- Online in browser trial - http://try.github.io/levels/1/challenges/1
- Gitlab Git managment software git.example.com uses - http://gitlab.org/
- Download Git for Windows http://git-scm.com/download/win
- Run installer
- Open "Git Shell"
- Type
ssh-keygen.exe
to generate ssh keys to /C/Users/USERNAME/.ssh - Copy the contents of
/C/Users/USERNAME/.ssh/id_rsa.pub
to your clipboard, open it using notepad or something else. Will look similar to:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwHoPKasdasdbjXjixG8K4hiMXtGpkNRtIWwrlwNlmTu24QECjNJirNJtD+VvENA3FdeWU1admv6P0o2dCAw3QDBSBJhlwUs+CEcGbx6GdcX7W4I3xaCowrBBpHh+HmggLqorrLmenU8atP4FGBwv5tl1KIgHNEwtpH9l34NQmbGDcVQUss2JVZ0v19feRFa1231N9CkgMCjxZPhV2+eW7FUym+CgR2qJmfEEuhztFnitARUiab37lYJ0+M7Mxx7x2f1SIxptUtivbRt+AiD+RMAbQhfcjhy5eOPD+djV3CaZ0SocrK3K0hrCTjgU9AqnsqlFREG0vfMgNRuUaSgRtWQ== USER@USER-PC
- Config email and name. In the "Git Shell"
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
- Log into https://git.example.com/
- Navigate to add key section of website https://git.example.com/profile/keys/new
- Name the key and paste the contents of step 5 into the bigger box.
- Navigate to the new projects page (https://git.example.com/projects/new), or from the home screen there is a button on the right that says "New Project"
- Name it and add a description... Namespace deals with permissions and associated repositories. Currently there are two I use, Intellistreets to house all production/developement repositories that deal with the core Intellistreets product. Blue light button is exactly that blue light stuff. You can also create a repo in your personal namespace, for minor stuff that doesn't need to be shared with everyone.
- Follow the example instructions
mkdir test-project
cd test-project
git init
git add .
git commit -m 'first commit'
git remote add origin [email protected]:AdamMagaluk/test-project-2.git
git push -u origin master
-
Find git ssh url for project should look similar to
[email protected]:AdamMagaluk/test-project.git
-
Run in the "Git Shell"
git clone [email protected]:AdamMagaluk/test-project.git
will checkout project into a foldertest-project
-
Navigate into test project
cd test-project
-
For development you should be working in a development branch, you can create one by running
git checkout -b adammagaluk/devel
or if already createdgit checkout adammagaluk/devel
-
git status
to check changes to working directory. -
git commit -a
to commit working directory to repo. -
git push
to push all new commits from current branch to origin server.