Code Monkey home page Code Monkey logo

apprentice-git-github's Introduction

Nearsoft Apprentice - Git and Github.

The purpose of this repository is to play with Git (commands and workflow) and contribute/share knowledge with others using Github.


Step 0:

Install Git on your computer.

Step 1:

Sign Up for Github. The website will ask you for a username, email and password.

Step 2:

Fork the repository Apprentice-Git-Github. This will create a copy of the repository on your profile to start working with.

Step 3:

Open a Terminal and clone the repository you already forked (the one that is on your account), use the next command on your terminal (in case you're using a client, follow program wizard).

git clone https://github.com/[YOUR-ACCOUNT]/Apprentice-Git-Github

This will create a copy on your computer of the repository.

Step 4:

Check the status of the repository. It's a good practice to start doing this, bash git status will show you the current state of your repository.

git status

Step 5:

Let's add our information to git. It's important to bring an email and your name to help git identify who made a change on a file. This can be done modifying the next commands.

git config user.name "YOUR_NAME"
git config user.email "YOUR_EMAIL"

Step 6:

Create a directory with the initial of your first name and concatenate your last name. For example Juan Resendiz will become jresendiz.

mkdir jresendiz

Now create a file called, personal_information.txt inside the created directory and edit the file. You can add whatever you want on the file. Save the changes.

Step 7:

Check the status of the repository. Git will show you that a new file exists and it's Untracked. The file will keep in that way unless we decide to add it. Let's add the file.

git add jresendiz/personal_information.txt

Step 8:

Check the status again, now you will see that the file that you created is part of the staging area and it's ready to be commited. Let's commit the file and add a message to that commit.

git commit -m "Creating my file"

Don't forget to change the message and add something related to what you just did or write on the file.

Step 9:

The file you created has just become part of the git history, let's take a look to the log and see what's in the history.

git log

This will show you part of the repository history. The first commit information that appears, is the commit you just made!.

Step 10:

Let's update our remote repository, just follow the next command.

git push origin master

This command will ask you for your github credentials (username/password).

Now your local repository and your remote repository are up to date!.

Step 11:

Create a pull request. Just enter to your repository and go to Pull Requests tab, click on New pull request. Set the base fork to Apprentice-Git-Github on base master and the head fork to your local repository, and compare branch to master.

Consider the next image as example.

Pull Request

apprentice-git-github's People

Contributors

jresendiz27 avatar crubal avatar fakedalia avatar diegofariasdev avatar 80211android avatar kjoselyn95 avatar johnupiicsa182 avatar varinia avatar

Stargazers

Roman avatar

Watchers

Daniel Gallegos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.