Back to Browse

Git and GitHub| Remote | GitHub repository | Git push, pull, fetch and merge | Basic remote command

206 views
Sep 21, 2022
22:22

Links: 1. Git and GitHub introduction : https://youtu.be/UIM2xiTn-_Q 2. Git and GitHub setup, Local system commands : https://youtu.be/Eb-pSRAg2-0 3. Git remote and basics - https://youtu.be/l1bITUFXmqs 4. Git branching - https://youtu.be/x-sx1mfF3s8 5. Git merge and rebase - https://youtu.be/KCYs4G3FtDU 6. Git fork and pull request - https://youtu.be/0zCdNUHIcSY URL video link: https://youtu.be/oYm3MR3DU3A Chapters of this video: Introduction : 00:00 - 00:28 Git Works : 00:29 - 00:40 Remote real life : 00:41 - 02:59 GitHub repository creation: 03:00 - 05:26 Access GitHub repository in local: 05:27 - 06:43 Git pull: 06:44 - 09:53 Git push: 09:54 - 10:47 Git clone: 10:48 - 11:49 Fetch and merge: 11:50 - 16:06 Basic remote commands: 16:07 - 17:29 Project 1 : 17:30 - 18:50 Project 2 : 18:51 - 19:51 Project 3 : 19:52 - 21:43 Summary: 21:44 - 22:21 Remote system Real life remote Remote in Git GitHub remote repository creation: step by step demo Remote : Remote/remote repository – GitHub repository. Remote in local : Access GitHub repository via remote. Commands : git remote add remote name remote url Getting files from remote: Commands: git pull remote_name branch_name Error: fatal: refusing to merge unrelated histories, Solving command: git pull remote_name branch_name --allow-unrelated-histories. Pushing files to remote: After we complete the code, if we are ready to share with GitHub repository - push will be use. Command: git push remote_name branch_name Before push, first pull then push. Getting new changes if the main repository is changed. Git Cloning: Full clone/copy of existing repository. Stores a new directory. Including all logging and versions of files. Add default remote and branch. Remote name : origin Branch name : main Command git clone remote repo url Git fetch and Merge: Git fetch : Downloads fresh changes. Save it in local repository. It doesn’t affect working directory/staging area. Merge manually later. Entirely safe. Command: git fetch remote_name branch_name Git merge : Merge the fresh changes to working directory. Command: git merge remote_name/branch_name. Git pull : git pull = git fetch + git merge. Downloads fresh changes locally but automatically merge with working directory. One shot getting changes. Best for use : Depends upon situation. Basic remote commands: Showing current remotes, git remote Showing current remotes with url, git remote -v More information about remote, git remote show remote_name Rename remote, git remote rename old_name new_name Remove remote, git remote remove remote_name Project 1 Project 2 Project 3 Summary

Download

0 formats

No download links available.

Git and GitHub| Remote | GitHub repository | Git push, pull, fetch and merge | Basic remote command | NatokHD