Installing Git and Creating GitHub Account

Описание к видео Installing Git and Creating GitHub Account

This video lightly covers the process of configuring a repository locally and connecting it to a remote GitHub repository. This includes creating a personal token and the git commands necessary to configure a local account to push changes. Timestamps are included below.
Subscribe:    / @cwm-codingwithmike  
-Timestamps-
00:00 - Introduction
00:12 - Installing Git
00:36 - Initializing first Project. with Git
02:06 - Creating first GitHub Account
04:02 - Creating first GitHub Repository
05:02 - Adding Index.html to Repository via GitHub Code Editor
07:32 - Personal Access Token for Basic Auth - minor configuration of roles
09:16 - Terminal window - final configuration of local git repo for fetching, pulling and pushing of code stored in GitHub
10:20 - Checking remote GitHub account-- commands:
git ls-remote https://github.com/michaelrodgers-mar...
10:45 - Connect local repository to remote GitHub and create alias called "origin" -- commands:
git remote add origin https://github.com/michaelrodgers-mar...
11:27 - Verify alias connection to remote repository -- command:
git remote -v
11:44 - Fetch remote repository objects and references from alias we created -- command:
git fetch origin
12:15 - Setting the URL and Personal Access Token we created from GitHub -- command:
git remote set-url origin https://username:[email protected]/username/your_repo.git
14:35 - Switch to Main branch -- commands:
git switch main (this switches branches to a branch called main)
git branch (this verifies or displays current branch you are on)
git fetch origin (this pulls remote objects -- good idea to run if changes occurred without your knowledge)
git pull origin. (this pull actual changes down)
git log (this allows us to see the history of changes to this repository)
16:19 - vi editor to manipulate index.html --commands:
vi index.html (opens file for viewing)
i (i -- stands for insert mode and changes from viewing to editing)
ESC (exits back to view only)
:w (in view only mode this writes the changes and file to current directory)
:q (in view only mode, this quits from vi editor)
- for more vi commands visit: https://www.guru99.com/the-vi-editor....
17:07 - Git Commit of changes to index.html. --commands:
git add . (this stages all files in current directory. The dot (.) identifies local)
git commit -m "message". (this commits to local repo)
git push origin (this pushes changes to remote repository)
17:56 - Closing comments and what's next

Комментарии

Информация по комментариям в разработке