Git Notes
Git Notes
To work on any project, firstly user or client needs to Basically, every client or user can work
Centralized vs Distributed Version Control get the code from the master repository or server. So locally and disconnected which is more
48 the client communicates with the server and pulls all convenient than centralized source
the code or current version of the code from the server control and that ’ s why it is called
to their local machine. distributed.
It doesn ’ t follow the way of
communicating or merging the code
straight forward to the master
There will be just one repository and that will contain
repository after making changes. Firstly
49 all the history or version of the code and different
you commit all the changes in your own
branches of the code
server or repository and then the ‘set of
changes ’ will merge to the master
repository.
Can we share the code for two different Yes , we can share as per requirement but first we
50
branch have to add the branch
51 git cherry-pick
git secrets
for I in {1..10}
do
Shell Script for Auto Commit for create & echo $(date) > FILE$I
52
Commit 10 files git add . && git commit -m "Commiting File FILE$I"
sleep 1
done
Branching allows teams of developers to easily
A branch strategy, therefore, is the
collaborate inside of one central code base. When a
strategy that software development
developer creates a branch, the version control system
53 What is GIT Flow branch Strategy ? teams adopt when writing, merging and
creates a copy of the code base at that point in time.
deploying code when using a version
Changes to the branch don't affect other developers on
control system.
the team.
We have
1)Git Flow Branch Strategy
2) GitHub Branch Strategy
3) GitLab Branch Strategy