Difference between revisions of "Git User Setup"
Jump to navigation
Jump to search
Dsteinmark (talk | contribs) |
Dsteinmark (talk | contribs) |
||
| Line 6: | Line 6: | ||
* [https://about.gitlab.com/ gitlab] A web-based Git-repository manager providing wiki, issue-tracking, and continuous integration features. | * [https://about.gitlab.com/ gitlab] A web-based Git-repository manager providing wiki, issue-tracking, and continuous integration features. | ||
* [http://www.puttygen.com/ puttygen] A public/private key generator | * [http://www.puttygen.com/ puttygen] A public/private key generator | ||
| + | * [https://sourceforge.net/projects/gitextensions/ Git Extensions] | ||
Setup: | Setup: | ||
Revision as of 11:34, 11 October 2019
Setup and try Git using Git Extensions or TortoiseGit. First need to generate a private key for use with the repositories.
(TBD, taken from MORT U 2018 Day 2, may need clean-up)
Installs:
- gitlab A web-based Git-repository manager providing wiki, issue-tracking, and continuous integration features.
- puttygen A public/private key generator
- Git Extensions
Setup:
- Run puttygen to create a private key for use in Git
- In puttygen, Generate public/private key and save to C:\users\user\.ssh\tortoisekeys
- open gitlab -> Profile pic -> Settings -> Side ssh keys -> title key -> paste key
- Right Click -> Tortoise git -> Settings -> Git credentials -> Username -> use first and last name
- Make a new folder
- Make a new repository (private)
- Copy ssh URL
- Git create repo here
- Git sync -> manage -> paste URL
- Create blank text file
- Git -> ssh -> putty key -> link key
- Commit -> message "initial commit"
- Check mask file
- Commit
- Check repository - nothing there?
- We need to push! Commits are only local save states
- Click elipses on local branch, Click master
- Push -> yes
- Add stuff and change things to the file
- Do two commits, then push
- Delete local file
- Copy ssh URL from gitlab
- Paste URL
- Load putty key -> click key
- Do one more commit and change, and then push
- Oops made a mistake
- Show Log -> Right click -> commit -> Reset master to this