From 921f91616cdf839a3292bd6f92c505e6b84b0468 Mon Sep 17 00:00:00 2001 From: Joshua Liantluanga Date: Sun, 23 Mar 2025 11:30:39 +0530 Subject: [PATCH 1/3] create skeleton readme for git crash course --- newfoloder/Readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newfoloder/Readme.md diff --git a/newfoloder/Readme.md b/newfoloder/Readme.md new file mode 100644 index 000000000..709a13e8b --- /dev/null +++ b/newfoloder/Readme.md @@ -0,0 +1,9 @@ +## Commits + +## Branches + +## Remotes + +## Stashing + +## Merging \ No newline at end of file From 1501673d82826560c94144d47f498a7bb2823108 Mon Sep 17 00:00:00 2001 From: Joshua Liantluanga Date: Thu, 8 May 2025 10:08:05 +0530 Subject: [PATCH 2/3] Update Readme.md Update 1 --- newfoloder/Readme.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/newfoloder/Readme.md b/newfoloder/Readme.md index 709a13e8b..39745400b 100644 --- a/newfoloder/Readme.md +++ b/newfoloder/Readme.md @@ -1,9 +1,31 @@ +## Term Definitions +### Stages of a tracked file +* Unmodified: The file is tracked, but it hasn't been modified since the last commit. +* Modified: The file has been changed since the last commit, but these changes aren't yet staged for the next commit. +* Staged: The file has been modified, and the changes have been added to the staging area (also known as the index). These changes are ready to be committed. +* Committed: The file is in the repository's database. It represents the latest committed version of the file. + +**pull request** - used to signal that the commits from a branch are ready to be merged to another branch. if approved, it is merged into the base branch. + + + +## Universal +`git status` check status of working tree +`git add` tell Git to start keeping trach of changes in certain files +`git log` see info about prev. commits + ## Commits +`git commit` save changes to a snapshot ## Branches +`git checkout - b ` | switch between branches, create new branches; "-b" creates and switches to the new branch +`git branch` to see what branch you are on +`git fetch origin` to see if local repo is up-to-date with remote repo +`git branch -d ` delete the branch + ## Remotes ## Stashing -## Merging \ No newline at end of file +## Merging From 050183a3c0989785f4459130b9d150191abda133 Mon Sep 17 00:00:00 2001 From: Joshua Liantluanga Date: Thu, 8 May 2025 14:18:28 +0530 Subject: [PATCH 3/3] Update 2 --- newfoloder/Readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/newfoloder/Readme.md b/newfoloder/Readme.md index 39745400b..ad93e124c 100644 --- a/newfoloder/Readme.md +++ b/newfoloder/Readme.md @@ -29,3 +29,22 @@ ## Stashing ## Merging + +# Copilot +**Ctrl+Shift+P** for command palette +Common **inline cmd** slash commands: +- `/explain` - Provides an explanation of the selected code. +- `/suggest` - Offers code suggestions based on the current context. +- `/tests` - Generates unit tests for the selected function or class. +- `/comment` - Converts comments into code snippets. + +### Comments to code +You can describe the functionality that you want in a comment. When you select the `Enter` key, Copilot generates code based on your description.

+**Multiple Suggestions** - For complex code snippets, Copilot can offer multiple alternatives. +- When Copilot offers a suggestion, look for the light bulb icon. +- Select the icon or use `Alt+]` to cycle through alternatives. +### Automated Test Generation +* Select a function or class. +* Use the command palette to select Copilot: Generate Unit Tests. +* Review the test cases that Copilot suggests for your code. +