Skip to main content

GitHub Push (exact method)

 


  1. Open Terminal.
  2. Change the current working directory to your local project.
  3. Initialize the local directory as a Git repository.
    $ git init
  4. Add the files in your new local repository. This stages them for the first commit.
    $ git add .
    # Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
  5. Commit the files that you've staged in your local repository.
    $ git commit -m "First commit"
    # Commits the tracked changes and prepares them to be pushed to a remote repo
     
    Update Git
    ------------------
    $ git remote add upstream https://github.com/siumhossain/Personal-Blog.git
    $ git pull upstream master
    $ git status
    $ git push origin master 😤

    Ignore sensitive information.
    $touch .gitignore
    and add file or folder name for ignore those from uploading those file  in repo
     

Comments

Popular posts from this blog

Data visualize with matplotlib(solid line)

Nominal GDP      from matplotlib import pyplot as plt      years = [1950, 1960, 1970, 1980, 1990, 2000, 2010]      gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3]      plt.title('GDP')      plt.ylabel('Billios of $')      plt.plot(years,gdp,color='red',marker='o',linestyle='solid')      plt.show() * plt.plot(x,y,color,marker per year,linestyle) there are several line style '-', '--', '-.', ':', 'None', ' ', '', 'solid', 'dashed', 'dashdot', 'dotted' fig-