Git
- Installing git:
- Windows (Do the manual install to get the bash into terminal)
- mac:
brew install git
- Git needs the following to be part of commit id
- This information can be stored in git config
- Git configuration can be at
- system level
- global level (at user level)
- local repo level (at repository level)
- General recommendation is to set username and email at global level
- For commands
- –help (manual)
- google for cheatsheets
- prompt
- Prompt To find a command
you are an expert in git, i'm a begineer
I want to learn git commands,
I will tell you the purpose, you give me the command
some examples, summarize all of that in a tabular format
you are an expert in git, i'm a begineer
I want to learn git commands, I will give you the command
Create a simple and safe scenario to work on my local system to try different options and become good at command line
Configuring Git
git config --global user.name "<your username>"
git config --global user.email "<your email>"
Create a local repository
mkdir myfirstrepo
cd myfirstrepo
git init
Make changes in working tree and create a first commit
Like this:
Like Loading...