Help with first time using GitHub #179356
Replies: 4 comments 4 replies
-
Hey!So here’s the deal. What you’re asking is normal. You don’t have to push every little change while you’re coding. Git works in steps: 1. Code all day locally: Just work in VS Code, change stuff, whatever. Git is watching, but nothing goes to GitHub until you tell it to.2. See what changed: Run git status in your terminal. It’ll show you what files got touched since your last commit.3. Stage your stuff: git add . grabs all the changes (or git add if you only want some). This is like telling Git, “Hey, include these in my next snapshot.”4. Commit it: git commit -m "Wrote some scripts today" saves everything staged, but still locally. GitHub doesn’t know yet.5. Push it to github: git push finally sends all your commits up there. |
Beta Was this translation helpful? Give feedback.
-
|
Did you run |
Beta Was this translation helpful? Give feedback.
-
|
you probably have to run "git add ." to add all the file you made changes and commit it after that type "git log --oneline" to see all the latest commit you made and then probably check the remote origin is correct and try "git push" and if you want your old changes you can run "git restore". |
Beta Was this translation helpful? Give feedback.
-
|
Great question! Here's the Git workflow you need: Working All Day, Push at End# 1. Work on your code all day in VS Code
# 2. At end of day, stage ALL your changes
git add .
# 3. Commit with a message describing what you did
git commit -m "Added new automation scripts"
# 4. Push to GitHub
git pushWhy Your Second Changes Didn't ShowYou probably did Quick Reference
Pro Tip: Use an AI-Powered IDEIf you're new to Git, try Cursor - it's VS Code with built-in AI. You can literally ask it "how do I push my changes to GitHub?" and it'll show you the commands for your specific situation. Good luck with your automation scripts! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Anyone,
I have installed everything (Visual Code, Git Hub etc) and have written my first automation scripts in typescript. I have then committed to my GitHub repository. But my question is, how would it be possible for me to do a full day of scripting on my desktop with VS Code, and then at the end of the day just push all my changes at once to Git Hub. Or do I need to be doing something different. I did make some changes after my first commit but after doing it again the changes were not saved to Git Hub.
Beta Was this translation helpful? Give feedback.
All reactions