Giter Club home page Giter Club logo

anleitung's Introduction

Anleitung

Anleitung zur Benutzung unserer Github Organisation

Using git from the command line

Accessing the Repository

  • Launch a terminal.
  • Navigate to your projects directory cd ~/MyProjects.
  • If your repository already exist on GitHub, get the clone link from the "Clone or Download" button on the GitHub Repository. Clone or Download Button on GitHub
  • Then, clone your repository by using git clone [your-copied-url]
  • Once your repository has cloned, you can change to your project directory cd [your-repository-name]

Preparing the Repository

  • Now, make sure you are on the correct branch. You can check this branch using git branch and looking at which branch is marked with an asterisk.
  • NOTE: Updating the project from master
    • If you have worked on your project on multiple machines, it is a good idea to update from master before working. To do this, checkout master using git checkout master.
    • Now, make sure your master branch is up to date using git pull.
    • Checkout your working branch using git checkout [working-branch-name]
    • Make sure this branch is up to date with its remote self using git pull
    • You can update your working branch from master using git rebase master
    • You are now up to date and ready to work!
  • To create AND checkout a new working branch, use git checkout -b [working-branch-name]
  • Now, if your working branch is shown as your active branch, you're ready to get to work!

Working in the Repository

  • Open the code in your editor and begin working. Once you have made a single logical change to the code, it is time to make a commit!
  • Save your work before switching to your terminal
  • Now, stage your changes using git add .
  • Commit your changes locally using git commit -m "[your-commit-message]"
    • Type a brief (55 characters or less) description of the change you made.
    • Example: git commit -m "Create toString method in Student class"
  • Now that your commit is made, you can push these changes to the remote GitHub repository using git push
  • Repeat this process until your code is complete!

See also Understanding the GitHub flow and the Git learning game.

anleitung's People

Contributors

sthiele avatar

Stargazers

Philipp avatar Pavlos Stephanos Bekiaris avatar

Watchers

James Cloos avatar Philipp avatar  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.