- Cloning repositories
- Creating your own branch
- Adding and committing files to your own branch
- Pushing your branch to a remote repository
- Git proficiency is crucial for working with source code in a collaborative way
- Employer partners often share with Codeup that they'd graduates
- The topics of this exercise will be assessed later in the Codeup course
- Clone this repository to your development environment
- Create a branch named your firstname-lastname. For instance, Grace Hopper would create a branch called grace-hopper
- Go to index.html and add an
<h1>element that contains your name. - Add and commit your changes.
- Push your local firstname-lastname branch to GitHub.
-
Clone this repository to your local projects directory. If you're using IntelliJ, go to File->New->Project From Version Control->GitHub and then paste the clone address of this repo. The clone address of the repo is found by clicking the green "Clone or download" button on the repo's page.
-
Create a branch named firstName-lastLastname where firstName is your first name and lastName is your last name. In IntelliJ, go to VCS, then Git, then Branches, and click "+ New Branch" and name it accordingly.
-
Either do Command+K or go to VCS, Git, then commit your work in IntelliJ.
-
Push your branch to GitHub with Command+Shift+K or go to VCS, Git, then Push. This will push your firstname-lastname branch to this GitHub repository.
- Open up your terminal application
- Navigate to your projects directory or wherever you normally add new projects.
- Clone this repository:
git clone https://github.com/CodeupClassroom/practice-git.git - Change directories into your copy of this project
cd practice-git - Create a branch in your name.
git checkout -b firstName-lastNamewhere the first and last names are your first and last name. - Run
git statusto double check the new branch is created and you are working inside of it. - In your prefered editor, open up
index.htmland add anh1tag with your name. Be sure to save your work. - Running
git statusshould show that you have uncommitted changes inindex.html - Running
git diffshould show the changes that you have made to any files. - Run
git add index.htmlto add the changesindex.html - Run
git commit -m "adding my changes to index.html" - Run
git push -u origin firstName-lastName - In your browser, navigate to this repository on GitHub and double check to make sure your branch is pushed.
- Instructors must add students to a team named after the class name.
- Students must accept the invite from GitHub in order to be able to contribute to this repo