Step 1: Initialize Git in the project folder
Note: Git bash should be installed on client
machine.
Open Gitbash from
the project folder and initialize Git from the project folder using the below
command:
$git init
|
Step 2: Add the files to the local Git repository:
git add .
|
Step 3: Commit Added Files:
git commit -m
'First commit!!!'
|
Step 4: Add remote repository URL:
git remote
add origin https://<Git-server-URL/IP-address>/TestRepo.git
|
Step 5: Finally push the project code/data to the
Git Server:
git push -u
origin master
|
It’s done. The
project code is uploaded on Git Server.
No comments:
Post a Comment