The basic commands used are:
To initialize a project in local, go to the project directory and use the following command which will create a .git folder.
1: >git init <project name>
To check the status of the repository use the status command.
1: >git status
To track the files created or modified locally, add command should be used.
1: >git add *
or
1: >git add *.js
or
1: >git add <file name>
To attach git repo to local workspace
1: >git remote add origin <git url>
1: >git commit –m “Commit my changes”
1: >git push -u origin master
1: >git pull
Thanks.
Bimal
No comments:
Post a Comment