Steps to setup GIT:
1. Install GIT
2. Go to your code base location
3. Create a .gitigonore file to the root directory of project
4. Add the below content to the .gitignore file
.svn
.gitignore
.DS_Store
5. Run the following command from the root directory. This is to be done only once
git init
6. Run the following commands everytime when you want to commit the changes to GIT
git add --all
git commit -m "checkin message"
7. Go to backup location where you want to keep the backup files. Execute following command for first time
git clone "$CURRENT_PATH"
eg: git clone C:\wamp\www\app1
8. For updating backup location run the following command
git pull
No comments:
Post a Comment