You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Initializing section of Setting Up has init, add, and commit on one line which can be confusing, and if the GitHub repo was created with a README, LICENSE, and gitignore, then the push will fail.
Move the setup commands to different lines for clarity
before the push command, add:
git branch --set-upstream-to=origin/main so we can pull
git pull --allow-unrelated-histories so that the pull won't interfere with our local files
Either on this slide or later, we can talk about git init [proj_name]
This brings up the possibility of two new slides: connecting to an existing GitHub repo with code; starting completely from scratch
The text was updated successfully, but these errors were encountered:
The Initializing section of Setting Up has
init
,add
, andcommit
on one line which can be confusing, and if the GitHub repo was created with a README, LICENSE, and gitignore, then thepush
will fail.push
command, add:git branch --set-upstream-to=origin/main
so we can pullgit pull --allow-unrelated-histories
so that the pull won't interfere with our local filesgit init [proj_name]
The text was updated successfully, but these errors were encountered: