How to Push a Folder to GitHub | Scribe

    How to Push a Folder to GitHub

    • |
    • 0 step |
    • 22 seconds
    To get started, open "Terminal" via your Dock or Applications
    Navigate to your repo and use "git status" to check for missing files. As we can see here, our main branch is behind our working branch by two commits. We need to "push" changes.
    Type "git add -A" and hit enter. This will add your folder and any new files to the staging area.
    Type "git commit -m "commit message"" and hit enter to give your commit a description.
    Type "git push origin main" and hit enter. You may have to enter your password. Git will automatically push your commit, including any new folders and files, to GitHub.
    Was this Scribe helpful?
    Save this document for future reference.
    click-target-circles-background
    This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe