git switch -c keeping changes in both branches [duplicate]
This question already has answers here: git checkout branch after git add, seems not update index and working area (3 answers) Modified files in a git branch are spilling over into another branch (6 answers) Closed last month. I have made some changes in my master branch. I want to switch those changes to a […]
github repo not found :
git remote add origin https://github.com/aksharma27/myZoom.git
git add .
git commit -m "comment"
git push -u origin master
https://github.com/aksharma27/myZoom.git
Do I need to learn git commands or GitHub Desktop is enough
As a software developer it is essential to use version control systems, I use the GitHub Desktop for a while, and I didn`t write a single command, Is this enough or what ?
Github: Recovering a commit that has been lost after pull request
So I merged my branch revamp/studio-creator inside main. It merged fine, however I realised that main branch didn’t have the most up to data code, there were parts that I would want from studio-creator branch but those were not merged over to main. I didn’t give it much thought and just deleted my local instance and cloned the repo again (This might be disastrous but I thought since my changes are already pushed, there’s no risk). I cloned the repo and I saw still the commit made yesterday (12th June is missing). Github commit history of all branches is only showing latest commit as one done on 29th May. Since main branch was old anyway I renamed it to main2 and renamed by studio-creator branch as main. Then I deleted main2. However now I am left with a scenario where the latest commit is nowhere to be found. It’s not in the commit list (which is weird since the PR was merged yesterday and the commit history is reflecting work of past 2 weeks, don’t know why is that!).
Can someone please help me with this scenario? The commit we lost had work of past 2 weeks and it is absolutely important to get this work back.
Already logged a compalin to Github support but their response times are very bad so that’s why posting here, hoping someone would be able to help!
I want to rollback changes to a commit ID and then commit these rolled back changes as new commit in GIT
I have to be very careful asking this question as I don’t want any misunderstandings.
Failed to resume your working changes from the cloud
Please I get the error “Failed to resume your working changes from the cloud.” when I do launch my applcation on Vs code. The github source control is also empty it just show the blue loading icon and after the icon disappears i get the error. The source control does not track the new changes in the app and some codes are missing. The files are there but there is not code.
Initialise version control of GitHub repository using git
how do I initialise version control of a repository on GitHub using git? I am new to GitHub and git. have been searching for tutorial online but I don’t really find one that could help.
How can we revert particular commit in local from bunch of commits?
Requirement: Revert particular commit in local by commit ID.
What is considered “best practices” with regard to Git main vs. master?
For several years I have noticed that Git has both a main and master branch at the HEAD (web browser). But when I work locally in Linux, there’s only master.