IAC - Version Control
GITHUB
GITHUB
  • Background
  • Setting up GitHub
  • Windows
    • Working with a cloned repo
    • Populating a repo from local files
    • Integrate VSCode
  • Linux
    • Using SSH
    • GH Command Line
  • The Basics
    • Forks
    • Logs
    • Undoing Local Changes
  • Larger Projects
    • Setting up a repo
    • Creating my Branch Architecture Locally
    • Creating a Feature Branch
    • Creating my Branch Architecture on GitHub
    • Merging the changes from GitHub on my local machine
    • Merging the changes from my local machine to GitHub
    • Sync the branches in GitHub
  • Finally
Powered by GitBook
On this page
  1. Larger Projects

Setting up a repo

PreviousLarger ProjectsNextCreating my Branch Architecture Locally

I created a new repo called BranchTest on GitHub.

I created a directory OneDrive - Atlantic TU\GitHub\BranchTest and created a single batch file in the directory, setup.cmd.

echo "# BranchTest" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/GreatlyImprovedTechnology/BranchTest.git
git push -u origin main

My file setup.cmd is not in the GitHub repo, in this case, I’ll add it and I check online to confirm.

The question arises, should I have included this file in the repo, or should I have excluded any such local build files in a .gitignore file?

And as for my readme.md, GitHub kept the quote marks and didn’t render the line as markdown. I edited the line in GitHub and did a pull to resync.

That renders properly now!