Git - Source control / Version Control
Clone : Remote repository -=----> Local repository (copying repo)
1. Clone your remote repo to your local system
where to create local repo> git clone remoteURL
2. Add files to local repo & put it on remote repo
> git status : how your project is progressing in comparison to you remote repo
(file untracked )
> git add file.txt ----> to track a file
(move changes from the working directory to the Git staging area. The staging area is where you prepare a snapshot of a set of changes before committing them to the official history
>git status
> git commit -m "message" : git commit takes the staged snapshot and commits it to the project history.
--------------------------------------------------------------------------------------------------- on local system
> git push origin master : specifies that you are pushing to the master branch on origin(server).
Your commits are now on remote repo
Comments
Post a Comment