Professional Documents
Culture Documents
Need of "Undo" in Software Development: - How To "Revert-Back" To "Previous-Version"???
Need of "Undo" in Software Development: - How To "Revert-Back" To "Previous-Version"???
c
h U
a n
n |
g d
e o
File6
File1 File2 File3
File5 File5
File4
Tracking an existing project using GIT
• In order to track files of an existing project we need
to initialize a GIT repository inside the project.
• For this go to the project directory using GIT Bash
and run following command:
<directory path> git init
• If the above command is successful, then a empty
GIT repository is created inside the specified path.
(as a hidden holder)
• This empty GIT repository is just a GIT skeleton and
none of the files are tracked yet.
• But how to track files of any project????
Adding files to “GIT repository”
• For tracking any files we need to add them in GIT
repository and then do a initial “commit”. This is done
by following commands :
git add *.txt
> The above command will add all files having .txt
extension
git commit –m “my first commit”
The above command will do a “commit” and needs a
commit statement.
Without commit statement the process will be aborted.
Changing already tracked files - Modification