Skip to content
View nkmcalli's full-sized avatar

Block or report nkmcalli

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nkmcalli/README.md

Testing table markdown

Test Test
`test` code style `test` code style
`test` code style `test` code style
Test Test
test code style test code style
test code style test code style
AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(AbcdefghijklmnopqrstuvwxyzAbcdef) AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(Abcdefghijklmnopqrstuvwxy)
BcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(AbcdefghijklmnopqrstuvwxyzAbcdef) AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(Abcdefghijklmnopqrstuvwxy)
CdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(AbcdefghijklmnopqrstuvwxyzAbcdef) AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(Abcdefghijklmnopqrstuvwxy)
DefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(AbcdefghijklmnopqrstuvwxyzAbcdef) AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyz(Abcdefghijklmnopqrstuvwxy)

Git Cheatsheet

managing-your-personal-access-tokens

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git checkout main
git fetch upstream
git merge upstream/main
git push origin main


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git fetch --all --tags        
git checkout -b <new-branch-name> <tag-name>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git checkout main
git pull
git fetch

git checkout <branch>
git rebase main
(merge conflicts) <<<<<<< HEAD
git add --all
git commit -a -m ""
git rebase --continue
git push --force-with-lease  (git push --force)


For a typical team workflow on a feature branch like test-1:
On test-1:
git fetch origin
git rebase origin/test-1 # integrate your colleague’s changes
git rebase origin/main # bring in main changes
git push --force-with-lease

This leaves test-1 containing: 
all main updates, your colleague’s commits, and your own commits, 
in a clean linear history, without losing anyone’s work. 
If your team dislikes rebase, use the same sequence 
but with merge in place of rebase and push normally.​


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git cherry-pick --edit -x fed7612b 
git cherry-pick --edit -x 093997a469f125ddc6d0c44eb7eefe1845fdb8c7

git cherry-pick --edit -x 8c2df308^..47c0d874
git cherry-pick <start-commit-hash>^..<end-commit-hash>

Start 8c2df308
End 47c0d874

git cherry-pick --continue

git revert <commit id>

git commit --amend  (opens editor)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<<<<<<< HEAD


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GitLab: use ~~~ to delineate change suggestions so it won't conflict with code blocks


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[pretty]
	nkm = %C(yellow) %h %C(green) [%as] %C(blue) (%cn) %C(white) %s

git log --pretty=nkm --max-count=5
git log --pretty=nkm --max-count=5 --graph


b32feded  [2025-05-14]  (Nicole McAllister)  Commit message


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git remote add kyle https://github.com/KyleZheng1284/nv-ingest-lib-mode.git
git fetch kyle

git checkout -b nkm/kyle-edit-1 kyle/fix/libmode-quiet-logging

make changes
commit changes

git push origin nkm/kyle-edit-1

go to the colleague's fork to request the pr


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git fetch
git branch -v -a
git checkout <branchname>

git checkout -b new-feature origin/new-feature

git push --force

git fetch origin
git reset --hard origin/main

git reset --hard 78d764a3


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System: Git root \ gitconfig
Global: C:\Users\username\.gitconfig
Global: ~home/username/.gitconfig

git config --global core.editor "notepad"
git config --global -e

Popular repositories Loading

  1. nkmcalli nkmcalli Public

    Config files for my GitHub profile.

    1

  2. buttonmen buttonmen Public

    Forked from buttonmen-dev/buttonmen

    Buttonmen - an online dice game

    PHP

  3. test-app-share test-app-share Public

    Shell

  4. nv-ingest nv-ingest Public

    Forked from NVIDIA/nv-ingest

    NVIDIA Ingest is an early access set of microservices for parsing hundreds of thousands of complex, messy unstructured PDFs and other enterprise documents into metadata and text to embed into retri…

    Python

  5. example-versioning example-versioning Public

    Forked from mkdocs-material/example-versioning

    An example of versioning with Material for MkDocs

    HTML

  6. langchain-nvidia langchain-nvidia Public

    Forked from langchain-ai/langchain-nvidia

    Jupyter Notebook