Step 1:
Check if the git is already installed
Step 2:
Download and install git.
go to the bellow URL and download the git for window version
Step 3: Add
your project into git
Create sample project in your local machine and added into git.
Step 4: GIT
basic command for Commit file into gitHUB
If you are
commeting first time You want to set bellow paramater:
git config --global user.name
"Suryaprakash"
git config --global user.email
"spraghuwanshi@gmail.com"
- git init
- git status
- git add .
- git commit
-m "Add Message here"
- git remote
add origin https://github.com/spraghuwanshi/Repo2.git
- git push
-u origin master
- git log
- git --help
Step 5:
adding your project into remote repository
create free account on github
"https://github.com/" and create new repository.
NOTE: You
can switch SSH key to https
ABC@Lenovo-PC
MINGW64 ~/Desktop/TestProject (master)
$ git remote
set-url origin https://github.com/spraghuwanshi/Repo2.git
ABC@Lenovo-PC
MINGW64 ~/Desktop/TestProject (master)
$ git remote
-v
origin https://github.com/spraghuwanshi/Repo2.git
(fetch)
origin https://github.com/spraghuwanshi/Repo2.git
(push)
No comments:
Post a Comment