2. Goals of GIT
● Speed
● Simple design
● Strong support for non-linear development (thousands of
parallel branches)
● Fully distributed
● Able to handle large projects like the Linux kernel
efficiently (speed and data size)
6. GIT basics.
Acquiring a local copy AKA clone.
git clone https://github.com/amith23/git_demo.git
7. GIT basics.
Adding new file to the repo associated with few steps.
1. We have to stage the change.
2. Commit the change to local copy.
3. Push the change to remote repo.
git add “file path”
git commit -m”commit message”
git push
8. GIT basics.
Switch the working branch
git pull “current branch / optional”
git checkout “branch name”
9. Best practises
● Always check for new changes before start your
development.
● Commit small, non breakable codes to your repository.
● Commit often.
● Give a meaningful comment message for your commit
● Create meaningful branch names ex. JIRA ticket id
● Configure lifecycle events hooks.
10. Best practises
● Always check for new changes before start your
development.
● Commit small, non breakable codes to your repository.
● Commit often.
● Give a meaningful comment message for your commit
● Create meaningful branch names ex. JIRA ticket id
● Configure lifecycle events hooks.