Giter Site home page Giter Site logo

gittask's Introduction

Git Task

Requirments

  • Start a new repo locally.
  • Make sure to rename your main branch from "master" to "main"
  • Create a repo on your Github account.
  • Add commits to your new project using best practices in commits/PRs.
  • Use ".gitignore", "Readme", "PR template" files to ease the project use for your team.
  • Get two of your mates to approve your PRs.

Git Commands

git init >> Creates a new Git repository
git status >> Displays the state of the working directory and the staging area
git log >> shows a list of all the commits made to a repository
git config --global init.defaultBranch main >> Changes git init default branch name

git remote add origin https://github.com/Asmaa933/GitTask.git >> links an existing project to a Git Remote
git remote -v >> Shows URLs of remote repositories 

git push -u origin main >> Pushes commits to a remote main

git checkout -b feature/readme >> Creates new branch(feature/readme) and switch to it
git checkout main >> Switches to main branch
git branch -d feature/readme >> Deletes local branch(feature/readme)
git branch >> Displays branches list

git add . >> Adds all file to staged Area 
git commit -m "Add readme file" >> Saves changes to the local repository
git push --set-upstream origin feature/readme >> Pushes feature/readme branch

git pull >> Updates the local version of a repository from a remote
git push >> Uploads local repository content to a remote repository

Screenshots

gittask's People

Contributors

asmaa933 avatar

Watchers

 avatar  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.