Skip to main content

Posts

Showing posts from September, 2020

How to make a private repository in Git Hub

  Step 1 is to create a gitignore file in that directory. So open Git Bash in the desired directory. Then use the command below to accomplish the task. Here you can add name of files or folders which you don't want to add in your github repository. Adding the file name or file directory name will simply ignore that file or file directory. touch .gitignore Step 2 is to Initialise. So use the command below to initialize. git init Step 3 is to add content to staging area. So use the command below to add all the content to staging area and prepare all the content to be added to your repository.  git add . Remember all the files except the file names added in the gitignore file will be added to the staging area. Step 4 is to make our first commit. So use the command below to make a commit. Here i called my first commit as "Initial Commit" you can call it "First Commit" or whatever you like. git commit -m "Initial Commit" Step 4 is an optional step, but i in