Talk Tools

Let's talk!

Initialize your machine

Configure global gitignore

git config --global core.excludesFile '~/.gitignore'

Configure your GitHub user

git config user.email "jazzyfresh@lmu.example"
git config user.name "Jazzy Le Fresh

Setup SSH

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

  • double check for existing keys
  • start your ssh-agent
  • upload public key to github

Let's get started with a git repo

Initialize your repo

  • first, go to GitHub and create an empty repo
git init
git remote origin git@github.com:jazzyfresh/talk-tools.git
git remote -v

first commit

echo "hello" >> README.md
git add README.md
git commit -m "added my readme"
git push -u origin main
  • you only need the -u flag in the git push on your very first push
    • after that you can git push on the main branch
    • on your feature branches you still need to git push origin feature-branch

Making branches

  • feature and bug fixes
  • any new development that needs to happen in parallel or be approved by your peers
  • it's helpful for keeping track of your changes
git branch feature-branch
git checkout feature-branch

OR

git checkout -b feature-branch
git add
git commit
git push origin feature-branch