line interface (CLI) and enter: git config --global user.name "Jon Snow" git config --global user.email [email protected] Those infos are used for each commit you create on your system. You can overwrite git configurations by performing the command within your repository and without the --global option.
in a specific folder (most likley your current project) You need to tell git which files to versionize. Those files are staged. .git directory, containing all commits, the index of commits and settings Services like GitHub or Bitbucket. Good to backup and publish your code. Supports collaboration. Commits
Has multiple parent commits ❖ Combines two branches ❖ Removing the branch after merging means removing the “feature/example” label from commits ❖ Commits themself remain in place, referenced by merge commit master feature/example master master master feature feature feature feature master
you've pushed to a repository. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before the changes are merged into the repository.
your branch to have a different parent commit ❖ This may cause conflicts ❖ Which is good ❖ Because otherwise these conflicts would occure when performing git merge ❖ You could also use rebase instead merge to bring both branches together, but this requires a git push --force master feature/example master master master feature feature feature feature
means, manipulating Git history ❖ Interactive Rebasing allows you to modify any commits in your repository ❖ Use this to clean up non-sense commits like “fixed typo” in your feature branch, before merging ❖ You can also squash all commits together, to one [FEATURE] commit ❖ Changes in history require a git push --force ➢ Which should be prevented for important branches on remote (like master)