Tuesday, April 2nd, 2019 | Server
Last Modified: 2024-11-10
View differences:
git diff
View status:
git status
View status in current directory:
git status .
git diff HEAD 'filename'
git diff --cached 'filename'
git diff * git commit -a
git commit -a -m "commit notes"
git remote set-url origin ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/*reponame*
git remote -v
git pull
git branch
Handle issue with all files showing as changed:
It may be line endings, GIT thinks it is linux so it will use LF as the line endings.
You can set git to only use CRLF line endings with:
git config --global core.autocrlf true
From Project notes:
https://stackoverflow.com/questions/215718/how-can-i-reset-or-revert-a-file-to-a-specific-revision
GIT Status shows all files as changed: https://github.com/microsoft/WSL/issues/184
Input Action Output
A collection of snippets and links that have proven useful for development and programming in ColdFusion, JavaScript, jQuery, PHP, Python, Dell, Minecraft, Apple, Mac, Windows, LINUX, Raspberry Pi, Adobe, CSS, and HTML.
©2024 Input Action Output