Git
- Github
- Bit bucket
- GitHub
- SVN
- CVS
- TFS
- Create a Origination
- Create a Repository
- Create a Team
- Add users to the Team
- Provide Repository access to the Team.
- Your Origination
- Teams
- New Team
- Select the user (From the list)
- Change role
- Maintainer
- Member
- Add Repository to the team.
- git add .
- git add *
- git add <Filenames>
- git commit - m “your commit here.!”
- git commit - m “Your commit here.!” <Filenames>
- git commit - m “Your commit here.!” <Filenames> <Filenames>
- git commit - - amend - m “Your new commit”---------------Change the most recent git commit message.
- git commit - a - m “Your commit here.!” --------------------For modified files/ Existing files
- Settings
- Development settings
- Personal access tokens
- Token (Classic)
- Generate new token
- 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
1. What is the difference between Branch & Tag?
Branch Tag
Branch is a Mutable Tag is an immutable (can’t change once created.)
We can create a number branch we can create a production deployment.
Git branch <Branch_Name> git tag <Tag_name>
Git branch git tag
Git push <Alias_Name> <Branch_Name> git push <Alias_Name> tag <Tag_name>
Git push <Alias_Name> - -all git push <Alias_Name> - - tags
- If you are working on “Development” Branch.
- You got a call from your lead. You have to work on urgent task.
- On this situation you need to switch the branch.
- Whatever you have work on that information will save as a backup for temporary.
- git stash
- git stash list
- git stash apply
- git stash drop
- git stash pop (apply + drop)
Git cherry-pick <Commit_ID>
|
|
Development Commint001, Commint002, Commint003, Commint001.
Git cherry-pick Commint003
git clone <URL>
s sh-keygen ----------------------------------we need to generate keys- id_rsa
- id_rsa.pub
- user_home_directory/.ssh
- ls - la ~/.ssh
- ssh -T git@github.com -----------------For public
- ssh -T git@ibm.ghe.com ----------------For Company
- ssh <User_name>@<Host_Name>
- ssh reddysekhar@172.12.6.22
Git rebase:
Master|
|
Development
Commint001, Commint002,
Commint003, Commint001.
.
git merge ===git rebase
(both are play same function)
Integrating from one branch to another branch.
Master cmt01 cmt02 cmt03 cmt04
|
|
Development cmt01 cmt02 cmt03 cmt04
Branching Strategy:
Before going to live we need to check the performance of
the application also for that also we need to create a one branch called “UAT”
For load testing / performance testing.
.
SIT (System Integration Test) is
a one environment.
Before going to production as it
is like production environment configurations are maintain.
SIT is similar to the
production.
After production deployment we found error.
Direct we are not work on Master Branch.
We create a one branch name called “Bug fix_Bug_name”.
.
If any features are updated then we create a branch name called “Feature_Frature_Name”
Comments
Post a Comment