티스토리 뷰

반응형

www.youtube.com/watch?v=OWaZXtgq28c&list=PLhW3qG5bs-L8YSnCiyQ-jD8XfHC2W1NL_&index=2

Can follow on Windows and Mac OS

 

Getting started with Git Commands

Today we will learn

Download and install Git
Add a project/folder to git
Commit and Push project to GitLab

 

실습

Step 1: Download git from git-scm.com/ and install git

 

Step 2: Check git is installed on your system

git --version

 

Step 3: Run following git commands

git config --global user.name "xxxx"
git config --global user.name

git config --global user.email "xxxx"
git config --global user.email

git config --global --list

 

Step 4: Create a demo project/folder & add to git

 

Step 5: Goto cmd OR terminal OR git bash

CD to the location of the folder and run following commands

git init     -> .git 디렉토리 생성
git status
git add .
git commit -m "msg"
git push -u "url" master /OR/ git push -u origin master

 

Step 6: Check project (files) added on GitLab

 

References

www.youtube.com/playlist?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함