Up and Running with Git Transcripts
Chapter: Our first git repository
Lecture: Pushing changes to the hosted repo
0:00 Well our Abbot, I gotta tell you it is absolutely amazing.
0:04 I mean who doesn't want to greet the entire world?
0:07 It's time to share that back with our source control on.
0:10 Git. So if we go back over here and refresh it again,
0:14 all we have is initial commit,
0:15 initial commit, initial commit. We can view all the history.
0:18 There is one commit done by me.
0:21 That's because even though we've made all these changes here,
0:25 they're all local, they still have this pending to be pushed.
0:28 So they're checked into my local clone of git but not the sync version where it
0:34 came from. Not the Origin Main.
0:36 They're just checked into local main.
0:38 So what we can do with any of these three tools,
0:41 I've shown you as I can do a git push.
0:44 So the closest most detailed version you can do is come over here and PyCharm
0:49 I could press the push button and
0:52 VS code. I could do that as well.
0:54 But let's see what we get over here.
0:56 Remember I told you about all the details here.
1:00 So instead of just pushing it says well where what origin do you want to push
1:04 too? And what branches and do we include the tags and so on and so
1:08 on. So almost always the default is just say okay wait a moment and now
1:15 you can see Origin main matches local main.
1:18 Let's go back over here. Refresh.
1:21 Yes four commits which is interesting.
1:24 Right. How many times did we synchronize with github one,
1:28 one time. If this was centralized source control there would be one commit.
1:31 But no, we did a bunch of commits and then all in one shot we
1:35 brought them over, For example,
1:38 eight minutes ago we did our basic flask app three minutes ago we did this even
1:43 though we sync it all at once,
1:44 it still tracks the difference in time when they happened and you can see down here
1:47 But those are the three additional things.
1:50 We did add flask to requirements,
1:52 create a basic shell, Hello World app.
1:55 And do the git ignored to ignore the .idea folder
1:58 So fantastic. If someone else has clone this repository and they want to get the
2:03 changes, all they have to do is do a git pull and they'll have them.