tag: git

  • Changing the Git master branch to main (updated)

    Changing the Git master branch to main (updated)

    Maria D. Campbell

    Changing the Git master branch to main on Github (updated).

    #default branch, #git, #macOS, #main branch, #master branch

  • When you forget to make your first git commit to remote origin, checkout into a new branch, and then merge into main

    When you forget to make your first git commit to remote origin, checkout into a new branch, and then merge into main

    Maria D. Campbell

    In this post, I discuss creating a new local Git repository, checking out into a new branch called create-config-project-and-users-app, trying to check out into main branch after committing changes in create-config-project-and-users-app, and after not succeeding, creating a new branch called main in create-config-project-and-users-app and checking out into main all at once, creating the remote repository on GitHub, adding remote origin, merging create-config-project-and-users-app into main, and pushing changes to remote origin.

    #fullstack development, #macOS, #command line, #git, #local repository, #remote repository, #feature branch, #main branch, #git merge, #series, #terminal

  • Creating the official Django Polls app Part 1

    Creating the official Django Polls app Part 1

    Maria D. Campbell

    In this section, I create a directory to house my Django Polls application, check if I have Django installed, select my Python interpreter, install virtualenv with pip, create a virtual environment for Django Polls, activate and deactivate the virtual environment, install Django, upgrade Django, create a project in Django Polls, initialize git, start up the Django development server, create an app called polls, write a first view, create a URLconf for the index view, and configure the global URL configuration.

    #fullstack development, #macOS, #django, #django app, #django project, #development server, #git, #pip, #python 3, #python interpreter, #runserver, #series, #tutorial, #urlconf, #views, #virtualenv, #virtual environment

  • How to create a fullstack application using Django and Python Part 4

    How to create a fullstack application using Django and Python Part 4

    Maria D. Campbell

    In this section, I discuss how to install the python-dotenv package and why it is crucial to do so as to safeguard sensitive information the Django application depends on.

    #macOS, #environment variables, #.env, #fullstack development, #git, #gitignore, #python3, #django, #python-dotenv, #security, #series

  • What "Bypassed rule violations" means when pushing changes to Github remote

    What "Bypassed rule violations" means when pushing changes to Github remote

    Maria D. Campbell

    What "Bypassed rule violations" means when pushing changes to Github.remote.

    #git, #github, #branch protection, #bypassed rule violations, #git push

  • Understanding the Github SSH Mistake "Fix" and How it Would Have Affected me if I Hadn't Been Able to Fix it

    Understanding the Github SSH Mistake "Fix" and How it Would Have Affected me if I Hadn't Been Able to Fix it

    Maria D. Campbell

    Understanding the Github SSH mistake "fix" and how it would have affected me if I hadn't been able to fix it.

    #git, #github, #human error, #security breach, #ssh

  • Removing unstaged changes to your individual files in Git

    Removing unstaged changes to your individual files in Git

    Maria D. Campbell

    Learn how to use git checkout and git restore to discard unstaged changes to individual files without resetting your entire working directory.

    #git, #git checkout, #git restore, #git staging, #git switch, #git index

  • Reinstalling Git with Homebrew to Get the Latest Version

    Reinstalling Git with Homebrew to Get the Latest Version

    Maria D. Campbell

    Installing Git with Homebrew on macOS gives you faster, easier updates than relying on Xcode. Here's how to do it using the Git alias command.

    #command line, #homebrew, #git, #git upgrade, #macOS, #macOS tahoe, #sip, #system integrity protection, #Xcode

  • Enabling the auto-complete feature in Git with Z-shell

    Enabling the auto-complete feature in Git with Z-shell

    Maria D. Campbell

    How to enable the auto-complete feature in Git using Z-shell.

    #git, #auto-complete

  • The importance and advantage of git push -u

    The importance and advantage of git push -u

    Maria D. Campbell

    The importance and advantage of the -u flag when pushing a local git repository to remote for the first time.

    #git, #git push

  • How to Add Files to Your .gitignore with no Sweat

    How to Add Files to Your .gitignore with no Sweat

    Maria D. Campbell

    How to add files to your .gitignore with no sweat.

    #command line, #git, #gitignore, #osx, #terminal