From the course: Programming Foundations: Version Control with Git (2020)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Adding changes with Git add and commit
From the course: Programming Foundations: Version Control with Git (2020)
Adding changes with Git add and commit
- After creating a repository, the basic git workflow is mostly making, adding, and committing changes. Let's start by making a change to the readme file in the project B folder. I already have the project open in Atom, but you can use whatever text editor you prefer. This file extension is md, because this is a markdown file, which is a markup language used to add formatting to elements in a plain text document. This first line is enclosed by two asterisks on each end. This is markdown syntax for bolded text. One asterisk is italicized text. And these two number signs will format this line as an H2 heading. If we look at the refill on Bitbucket, we can see how the readme file looks with formatting. Readme's can be written in any text file format, but markdown is commonly used. To learn more about markdown, check out markdownguide.org. I'm going to go back to my text editor so we can make a change to the readme…
Contents
-
-
-
-
(Locked)
Using the command line1m 17s
-
(Locked)
Command line basics4m 15s
-
(Locked)
Configure Git settings3m 11s
-
(Locked)
Setting up a local repository3m 1s
-
(Locked)
Setting up a remote repository3m 43s
-
(Locked)
Adding changes with Git add and commit4m 50s
-
(Locked)
Keep repositories up to date with Git pull and push3m 34s
-
(Locked)
Deleting a repository or branch29s
-
(Locked)
Challenge: Putting it all together1m 31s
-
(Locked)
Solution: Putting it all together5m 39s
-
(Locked)
-
-