Giter VIP home page Giter VIP logo

how-to-git's Introduction

how-to-git

Git is an distributed version control system. It is used for tracking file changes, and serves as a collaboration tool.

Step 1:

fork this repository.

https://github.com/AustinMay1/how-to-git

Step 2:

clone your forked repo to your local machine.

git clone https://github.com/YourUsername/how-to-git.git

Step 3:

create a local branch to make changes on. name this branch your initials + todays date. for example AM-11032023.

2 options here:

  • create and checkout at the same time

git checkout -b new-branch-name

  • create then checkout

git branch new-branch-name

git checkout new-branch-name

Step 4:

make some changes! add your name to the bottom of this document here.

Step 5:

stage your changes.

git add .

or

git add filename

Step 6:

commit your changes. you should always strive for your commit messages to be very specific about the changes you have made. in this case it doesn't matter to much. just put your initials or something.

git commit -m "commit message"

Step 7:

push your changes to your branch. it is important that you specify your branch name in this step.

git push origin -u your-branch-name

Step 8:

open a pull request! navigate to GitHub in your browser and head to your forked repository. You should now see an option to open a pull request to be merged to the main repository.

Step 9:

Sit back, relax, and await for approval!

via GitHub Desktop

Step 1:

fork this repository.

https://github.com/AustinMay1/how-to-git

Step 2:

clone the forked repo to your local machine. Make sure to set your local path to somewhere easily accessible such as C:\user\Documents.

file > clone repository

Step 3:

create a new branch to make changes on. name this new branch your initials plus todays date AM-11022023.

branch > new branch

Step 4:

open the repository in your code editor (assuming Visual Studio Code)

repository > open in visual studio code

Step 5:

make some changes! check in at the bottom of this document here.

Step 6:

back in GitHub Desktop, on the left hand side ensure that you have the files you have changed checked off and at the bottom write out a commit message, then click Commit to your-branch-name. You should then see an option to publish this branch or Ctrl+P.

Step 7:

back on GitHub, navigate to your forked repo and you should now see an option for openening a pull request.

Step 8:

Sit back, relax, and await for approval!

Check-in!

  • Austin May
  • Christopher Turcotte

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.