GithubHelp home page GithubHelp logo

github-for-abdalla's Introduction

Github-for-Abdalla

I - First of all, save the code you currently have in another directory.

II - To pull the repo after noura announces do the following :-

1- Make a new empty folder and open the terminal inside it.

2- Type : (git init) , 
   Expect: initialized empty git repo.......

3- Type : (git remote add origin https://github.com/SEGUC17/abdallah-wl-3-banat.git),
   Expect : new line

4- Type : (git pull origin dev), 
   Expect : github asks you for username and pw.

5- After entering them successfully, Type : (git branch)     **Confirmation for step 4**
   Expect : *master "in green" & you should find the new code in your new folder.
   
6- Type : (git checkout -b dev)
   Expect : Switched to a new branch 'dev'

III- Now copy your stuff from the old to the new code.

IV - To push changes to your own github branch do the following :-

1- Open a terminal in the directory of the new code. 
2- Type  : (git add .)
   Expect: new line.

3- Type  : (git status)     **Confirmation for step 2**
   Expect: On branch dev, Changes to be committed:  *A bunch of files in green*

4- Type  : (git commit -m "Any brief description of your tasks inside double quotes")
   Expect: [dev blablabla] "the description u entered for the commit", 1 file changed.....

5- Type  : (git checkout -b dev-"your name without the quotes")  **choose a new name other than ur old branch**
   Expect: Switched to a new branch 'X'

6- Type  : (git push -u origin "The value of X without the quotes")
   Expect: It may or may not ask for your github credentials, then you will see it
         uploading.

V - Wait for a the upload, then refresh the repo and check the changes on your new branch 'X'.

VI- Optional now there're 2 branches, your old and your new one, to delete the old branch, Type : (git push origin :"Your old branch name") Include the ':' Expect: A msg saying it's deleted.

Wasalamo 3alaykom wara7matollah wa barakatoh.

github-for-abdalla's People

Watchers

 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.