Configuring the Global User Name & Password in Git
git clone http://pradeep.kumar:Password01*@10.0.0.51:8080/tfs/Collection/ProjectA/_git/QA_Automation_Project
git config --global user.email pradeep.exe@gmail.com
git config --global user.name "pradeep.exe"
Terminologies:
https://www.git-tower.com/learn/git/glossary/origin/
Origin = In Git, "origin" is a shorthand name for the remote repository that a project was originally cloned from. More precisely, it is used instead of that original repository's URL - and thereby makes referencing much easier.
Here the origin is https://github.com/gittower/git-crash-course.git
https://www.git-tower.com/learn/git/glossary/master/
After cloning (downloading) a project from a remote server, the resulting local repository has a single local branch: the so-called "master" branch.
rebase:
https://www.git-tower.com/learn/git/glossary/rebase/
It is an alternative to the better known "merge" command.
rebase differs from merge by rewriting the commit history in order to produce a straight, linear succession of commits
Head:
https://www.git-tower.com/learn/git/glossary/head/
When working with Git, only one branch can be checked out at a time - and this is what's called the "HEAD" branch. Often, this is also referred to as the "active" or "current" branch.
git checkout -b <branchName>
Read this article:
https://stackoverflow.com/questions/57265785/whats-the-difference-between-git-switch-and-git-checkout-branch
https://www.quora.com/What-is-origin-and-master-in-git
As we are using git checkout for both restore and switching branch,
git checkout <filename> , will undo the unstaged stages
git checkout <branchname> switches branches.
They added seperate commands for restore and switch
git switch
git restore
origin : remote
Master : local
when we clone, a default master branch will be created locally.
HEAD is the snapshot of your last commit.
https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches
https://stackoverflow.com/questions/57265785/whats-the-difference-between-git-switch-and-git-checkout-branch
https://www.quora.com/What-is-origin-and-master-in-git
As we are using git checkout for both restore and switching branch,
git checkout <filename> , will undo the unstaged stages
git checkout <branchname> switches branches.
They added seperate commands for restore and switch
git switch
git restore
origin : remote
Master : local
when we clone, a default master branch will be created locally.
HEAD is the snapshot of your last commit.
https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches
No comments:
Post a Comment