Setting Up Git and GitLab with IntelliJ (From Scratch)

Опубликовано: 29 Сентябрь 2024
на канале: Bob Laramee
22,364
71

Here is a more recent version with audio:
   • Setting Up Git and GitLab with Intell...  

This demonstration video shows how to set up Git and GitLab for use with IntelliJ

Mac OS 11.6 Big Sur
IntelliJ IDEA 2021.2.2 Community Edition

Setting Up the GitLab Server
---------------------------------------------
1. Open Browser to projects.cs.nott.ac.uk
2. Sign In (or register)
3. Create a project
4. Enter Project Name
5. Select "Create Project"

Create a Local Git Repository
-----------------------------------------------
1. Check for existing Git Tool (bottom left corner)
2. Go to VCS Menu -- Select "Enable Version Control Integration"
3. Choose "Git" version control system
4. Access Git tool window from bottom left icon -- open it
5. Open command window using "CMD+K" or "CTRL+K"
6. Open up "unversioned files" list
7. Group files by directory
8. Select files to commit
9. Type in "Initial Commit" to comments (lower left)
10. Select "Commit" button (bottom, left)
11. Show Git tool window

Committing Changes
-----------------------------------
Files that have been changed are shown in blue in project window
1. Show modified files in commit window
2. Click on settings icon
3. Uncheck "Perform code analysis" and "Check Todo"
4. Add commit message to indicate changes

Sharing/Pushing a Local Git Project on GitHub
--------------------------------------------------------------------------
Notice Git log with only local branches
1. Select "Git" menu
2. Select "Push"
3. Select "Define remote"
4. Cut & Paste push URL from GitLab
5. Enter username and Access Token from GitLab server as password
Notice Repository on GitLab in browser
Notice Git log in IntelliJ -- new remote directory

Connect with Bob on LinkedIn:
  / robert-s-laramee  

Connect with Bob on Facebook:
  / datavisbob  

Connect with Bob on WeChat-User ID: rlaramee