Coder Social home page Coder Social logo

is-105-gruppe1's Introduction

is105-uke04 : How to git?


Step by step:
Gå inn på mappen dere vil "lagre" Repoen på. (f.eks mkdir GitGroup -> cd GitGroup)
1. Last ned med git clone kommandoen
git clone https://github.com/IS-105-GitGroup/is105-uke04.git

2. Lag en ny branch med deres navn.
git checkout -b Erlend
Du ser nå at du er i branchen ved at branchnavn står etter mappestrukturen: GitGroup/is105-uke04 (Erlend)

3. Opprett en ny .go Fil i Go mappa enten med kommandolinje eller OS brukergrensesnitt.
Når du har lagret filen kan du skrive: git status og vil se at filen er rød der.

4. Legg til filen, commit og last opp.
git add . : "." gjør at du legger til alle filer, du kan også skrive filnavn.
git commit -m "kommentar" : Commit filen med kommentar
git push origin Erlend : Laster opp branchen Erlend til Repoen vår.

For å oppdatere lokale filer, kan git pull origin BRANCH-NAVN brukes.

Nyttige kommandoer:
git clone "url til repository" // clone et repository fra github f.eks.
git status // vil gi en oversikt over endrede filer
git add "filename" // vil legge til filen til stage for commit
git add . // vil legge til alle filer som er endret til stage for commit
git reset "filename" // fjerne staged file for commit.
git commit -m “melding” // pakke inn endringene klar til push
git push origin "branchnavn" // Legg ut commit’en til github.
git checkout -b "branchnavn" // opprette en ny branch
git checkout "branchnavn" // vil gå til branch
git merge "branchnavn" // merger branchen man er i til spesifisert branch.

is-105-gruppe1's People

Contributors

adrianseverin avatar b-blom avatar bblomvik avatar eirikas avatar helletrygsland avatar mathiasevensen avatar

Watchers

 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.