Today's Task (Git Using Linux Terminal)
Today's Task (Git Using Linux Terminal)
** (gedit:213395): WARNING **: 15:29:46.219: Set document metadata failed: Setting attribute
metadata::gedit-encoding not supported
** (gedit:213395): WARNING **: 15:30:07.776: Set document metadata failed: Setting attribute
metadata::gedit-position not supported
root@DESKTOP-5UVU8GQ:/linuxrepo# git status
On branch main
Your branch is up to date with 'origin/main'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
parc
nothing added to commit but untracked files present (use "git add" to track)
root@DESKTOP-5UVU8GQ:/linuxrepo# git add parc
root@DESKTOP-5UVU8GQ:/linuxrepo# git commit -m "create a new file parc"
[main 6efdaf0] create a new file parc
Committer: root <root@DESKTOP-5UVU8GQ>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 1 insertion(+)
create mode 100644 parc
root@DESKTOP-5UVU8GQ:/linuxrepo# git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
root@DESKTOP-5UVU8GQ:/linuxrepo# git push origin main (It will not work like that we have to gen token)
Username for 'https://github.com': mjawadkashif
Password for 'https://[email protected]':
root@DESKTOP-5UVU8GQ:/linuxrepo# git push
https://[email protected]/mjawadkashif/linuxrepo.git
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 312 bytes | 62.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/mjawadkashif/linuxrepo.git
da17609..6efdaf0 main -> main
root@DESKTOP-5UVU8GQ:/linuxrepo# nano parc
root@DESKTOP-5UVU8GQ:/linuxrepo# git status
root@DESKTOP-5UVU8GQ:/linuxrepo# git commit -m "new line parc"
Git Commands using Linux Terminal (Token Access)