Skip to content

Farhan-2222/Introduction-to-git-and-github

 
 

Repository files navigation

Introduction-to-git-and-github

Beginner friendly repository! Try to fork this repository and make your first pull request!

  • Step 1 Install Git (Ubuntu sudo apt-get install git) window Click Here link

  • Step 2 Git First Configuration

           git config --global user.name "John Doe"
           git config --global user.email [email protected]
    
  • Step 3 Initialise the git Repo in your local project directory git init A .git folder will be added to your directory

  • Step 4 Create a file and check status git status [Untracked File]

  • Step 5 add the untracked file/files to the stage (git add filename / git add . / git add [patterns] )

  • Step 6 if you want to remove a file from stage to untracked (git reset filename)

  • Step 7 Commit the changes git commit -m "message to commit"

  • Step 8 git branch -b [branch name]

  • Step 9 git remote add origin https://github.com/ [username] / [repsitory name].git

  • Step 10 git push -u origin [branch name]

  • Step 11 Publish to GitHub

Please follow the Contribution guidelines

About

Beginner friendly repository! Try to fork this repository and make your first pull request!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published