**UPDATE** While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password To generate Access Token 1. Login to your GitHub account 2. Verify your email address, if it hasn't been verified yet. 3. In the upper-right corner of any page, click your profile photo, then click Settings. 4. In the left sidebar, click Developer settings. 5. In the left sidebar, click Personal access tokens. 6. Click Generate new token. 7. Give your token a descriptive name. 8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker 9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo. 10. Click Generate token
I had generated token but every time when I commit i require to login again and I need that token again so from where I can get that token as mentioned in above steps if i follow same it shows token generated name but how to get that token ?
Thanks a lot you are killing it . You are a good teacher thanks for exact steps and all details while explaining would like to learn more from you Thanks again .
Even though your video is 5 years old, u still are helping people by answering questions, you really are a legend. You really helped me with this. So thanks a lot😊
thanks a lot, sir, for such a concise introduction to this whole github thing. Was struggling to dip my toe into these unknown waters. And I'm finally doing just that, thanks to you!
I was discouraged with a lot of commands for DevOps. But when I stumbled on your video it gave me so much clarity. You videos are so simplified and I fine them very easy to assimilate. Thanks so much and God bless you with continues wisdom
I know it's a small thing, but thank you so much for this. I'm in the process of applying to jobs after graduating and I never really learned how to do this in undergrad (surprisingly few team projects, and the ones we had we all shared our code outside of github) so being able to go back now and upload all my code from the last couple years for job applications is a lifesaver.
After following user guides without success, watched your video and was able to immediately get Eclipse/GitHub working. Thank you! Look forward to watching your other videos.
I was discouraged with a lot of commands for DevOps. But when I stumbled on your video it gave me so much clarity. You videos are so simplified and I fine them very easy to assimilate. Thanks so much and God bless you with continues wisdom❤
I have been using git in our project for more than 6 months now, today I got to know how to configure it in eclipse. Its like a crash course of git. Thanks!
This is the fifth GitHub tutorial video I've watched and the first one that I felt was clear and concise! As a former math teacher, kudos to outlining the learning objectives in the start of the video. I was really glad to know specifically what was going to be taught in the video! Thanks!
Just perfect! There are many movies telling how to do that, but this one is pure info with perfect sound n cam work. 10 min to get to know commit & push, git acc repos.
what is pull used for? is it for if you put something in the git repository or someone has changed the code working on their computer and theyve pushed and committed? also how to delete the link between the two do I just delete the repository in Eclipse? Thanks for the video by the way, really helpful :)
Hi, When starting Eclipse , I get a dialog asking to provide login details for username and password. I have never seen this before. Where is it coming from? What does it do? 10:23
Thanks for the tutorial! Github is pretty hard to understand at first and your tutorial was helping me a lot on my way to the initial commit. Greetings from Austria!
Great video Raghav! I learned how to perform GIT push and pull using the command line. Question, if I pulled automation code from GIT with a different computer that I code it on, will there be any problems with running the automation code on different computers? I haven't tried it yet with your method, but have had trouble in the past using the command line. Just thought I as if you ever encountered this problem. If yes, how did you resolve? Thanks.
Hi, when you do a git pull, you will get exactly what is available in the repository at the time of pulling. Now next thing can be your other settings, setup, hardware etc, which is outside git. If you have a supporting system and settings, you should be able to run your project w/o any issues
Hi, are you giving password or Token UPDATE**** While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password To generate Access Token 1. Login to your GitHub account 2. Verify your email address, if it hasn't been verified yet. 3. In the upper-right corner of any page, click your profile photo, then click Settings. 4. In the left sidebar, click Developer settings. 5. In the left sidebar, click Personal access tokens. 6. Click Generate new token. 7. Give your token a descriptive name. 8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker 9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo. 10. Click Generate token
I'm trying to follow steps in min 7:30 but on my eclipse I cant see the files inside the project, I see only the project name inside the Unstaged changes and no option to drag it to the staged changes. How can I see the files there?
@@RaghavPal Thanks for replying! That's the thing, I see the entire project, but not the actual files.. this is the first time I try to push it to github so there were no previous commits
Hey Raghav. I can't believe that you explained the whole concept in 11 minutes. Thank you so much. Very helpful. Quick question: There are two options for Pull. "Pull" and "Pull.." in Selenium. Could you please explain the difference? Or is there another tutorial for which you can share the link. It will be really helpful.
Hey. Thank you for responding. There is no complete word. But I clicked on both the options and found the difference. With "Pull.." I get a window that asks me what kind of Pull should be performed.."Rebase", "Rebase interactively", "Merge". And with "Pull" (am guessing), it directly merges.
Excellent! A pleasant bonus from your presentation was learning about the existence and usefulness of Windows Magnifier. My 92 year old mother will be happy to learn about that. Thank you!
Very good explaination, explained step by step process i think no one replace your explaination skills please continue , by watching your video any one can(New to github) can learn easily , finally usefull video thank you for you video..!
Thanks Bro! this is really helpful. I have just one suggestion and please don't take it otherwise. when I was watching your video, i felt that you spoke little faster at some point of time. so please take your time and don't worry if you take some more mins for your video after your helping all of us.So we don't mind in that too.
Is it safe to assume that one must first create the repository in Github? When I greate a new Git repository in Eclipse, share the project with the new Git repository and do the initial commit to Github, it doesnt work( i.e. the repository is not autmatically created in Guthub)?
Hi Robert Yes, it is safe to assume that you must first create the repository in GitHub. When you create a new Git repository in Eclipse, it does not create the repository on GitHub. It simply creates a local repository on your computer. You can then push the local repository to GitHub. To push the local repository to GitHub, follow these steps: 1. In Eclipse, right-click on the project and select Team, Share Project. 2. In the Share Project dialog box, select Git and click Next. 3. In the Configure Git Repository dialog box, select the checkbox next to "Create repository on remote server". 4. In the Remote Repository URL field, enter the URL of the GitHub repository. 5. Click Finish. Eclipse will now push the local repository to GitHub. You can then view the repository on GitHub by going to the GitHub website and logging in to your account. Here are some additional tips for pushing a local repository to GitHub: * If you are using a private GitHub repository, you will need to enter your username and password when prompted. * If you are using a public GitHub repository, you can skip this step. * If you are pushing a large repository, it may take some time for the push to complete. If you are still having trouble pushing your local repository to GitHub, you can try the following: 1. Make sure that you have entered the correct URL for the GitHub repository. 2. Make sure that you are logged in to GitHub. 3. Make sure that you have the correct permissions to push to the repository. 4. Try restarting Eclipse. 5. Try restarting your computer.
Hello Raghav This video helped me a lot trying to connect my ide to my GitHub account and vice versa. The way you explained makes it so simple. Thanks a ton and good luck.
hellow MR RAGHAF kindly, just as a note on step 4 : Goto Perspective - Git Repositories( and click on Add Git Repo). is the correct to say (clone a git repository and add the clone to this view) ?? thanks alot.
Hi Raghav, 1. when i click on "Commit and Push" button in Eclipse. User credentials pop up occurring frequently, even after the entering the user and Password fields. How to overcome it?
Amarnath When you encounter frequent user credential pop-ups while clicking the "Commit and Push" button in Eclipse, there are a few steps you can take to address this issue: 1. Change the HTTP Client: - Go to Window → Preferences → Team → Git. - Select the HTTP client option and change it from Apache HTTP to Java Built-in HTTP¹. - This switch might help resolve the repeated authentication requests. 2. Generate a Personal Access Token (PAT): - If you're using Visual Studio Team Services (VSTS) or Azure DevOps, consider creating a Personal Access Token. - Visit your VSTS or Azure DevOps account settings and generate a new token. - Use this token as your password when prompted during authentication¹. 3. Check Your Git Server Configuration: - Ensure that your Git server is correctly set up with your username and password. - Confirm that the authentication and authorization solution is configured appropriately. - If you're using TFS plugin for Eclipse, make sure it's set up correctly¹. 4. Use Commit Dialog Instead of Staging View: - Instead of using the Git staging view for committing, try using the commit dialog. - The "Commit and Push" button might behave differently in the commit dialog². Remember that these solutions are based on common scenarios, and your specific environment might require additional adjustments. If the issue persists, consider seeking further assistance from your team or community forums.
Is it possible to only commit specific file types like: .xml | .xsd | .xsl | .ps1 | .txt | .bat | .cmd | .reg | .config | .cfg | .ini | .old | .js and so on? So that it will not commit .png files and all large stuff I don't need in the repository?!
Appreciate your efforts, however one thing needs to be considered while teaching is that, you know all Git Eclipse and all included in it, but the viewers or the learners don’t, that’s why they’re here. Therefore you should explain the purpose of every step. Ex, at the start of the video you should have also introduced about what is Git, Eclipse and why both are used together, why cloning is done and all other terms. Anyways just a suggestion.
This was very helpful since i keep forgetting how to use github with eclipse! A problem I am having is having all the files show up in the package explorer. I tried pulling, but nothing happens. All the files are only shown in the Git Repo tab instead
Hi If you are working with a Git repository in Eclipse, but you are not seeing all the files in the Package Explorer, it may be because you have not imported them into the workspace. To import the files into your workspace, you can follow these steps: Right-click on the Project Explorer or Package Explorer window. Select "Import..." from the context menu. In the Import wizard, expand the "General" folder and select "Existing Projects into Workspace". Click "Next". In the "Select root directory" field, browse to the location of the Git repository on your local file system. Check the box next to the project(s) you want to import. Click "Finish". This should import the files into your workspace and make them visible in the Package Explorer. If you still don't see them, try refreshing the Package Explorer by right-clicking on it and selecting "Refresh". If you still have issues, it may be helpful to check the project's build path settings to ensure all necessary files are included.
Hi Fernando, knowing java will be a good foundation. I suggest that you can now start with Automation and select tools/skills based on your need. Any new skill you need can be learnt along.
Very nicely explained. Thank you. Actually video didn't cover Pull topic. Covers only clone, commit & push. Please share me if any video covers about it and the other options in eclipse->git repository other than cloning.
I am trying to add eclipse project to GitHub from my remote desktop as all my development work is done on the remote desktop. Can this be done? When I followed the steps in the video, it is not authenticating using my GitHub credentials.
Hi Lavanya, Yes, you can add your Eclipse project to GitHub from your remote desktop. Here are the steps you can follow: Open your Eclipse project and navigate to the directory where your project is saved. Right-click on your project and select "Team" -> "Share Project". In the "Share Project" window, select "Git" and click "Next". Select the project root directory and click "Create Repository". In the "Create Git Repository" window, select the "Use or create repository in parent folder of project" option and click "Finish". Once the repository is created, you can commit your changes by right-clicking on your project and selecting "Team" -> "Commit". Enter your commit message and click "Commit and Push". In the "Push to Upstream" window, select the remote branch you want to push to and click "Next". Enter your GitHub credentials when prompted and click "Finish". If you are having trouble authenticating with your GitHub credentials, make sure you have configured your Git settings with your username and email address. You can do this in the command line by running the following commands: git config --global user.name "Your Name" git config --global user.email "youremail@example.com" Once you have configured your Git settings, try authenticating again with your GitHub credentials. If you are still having trouble, make sure you have the correct username and password and that your internet connection is working properly.
I am a bit confused.. We develop script on eclipse and integrate eclipse with jenkins. Then give github details on jenkins. Then jenkins and github talks to each other to execute test scripts on scheduled basis. Now where lies the chrome driver and jar files required to run the browser ? Where all the tests run in real time sir ? In company's computer ? How all these things really happens inside a company ? Just for practice purposes we use our local computer. Please clarify on this sir. Thank u
Hi, If we talk about project enterprise level, then here is a typical workflow. 1. Developers create code and push it on a shared repository using version control systems like git Here we can have a dev job on Jenkins that compiles and builds the dev project on each commit. 2. After the final commit and test its pushed and a Jenkins job can be used to deploy it on a server (test environment) 3. On successful deployment, this triggers the testing job that runs some automated tests to verify the build (BVT - Build verification test) 4. On success, this triggers another regression or complete test suite job 5. The verified build then goes into production.
Thanks, l successfully push my project from eclipse to github repository but the new updated GitHub can’t allowed me to send my project to my manager. Please do you have idea on how to do it? I mean to send the project via email. They just updated the GitHub repository because the old system allowed to send project to email without stress. I have been trying to do this with many instructions and guidelines but it won’t work. Thanks
Raghav, thanks for a great video--I'm a teacher and I'm very impressed. I do have a problem that I don't believe was addressed in the video. When I Commit and Push I get master->master [rejected - non-fast-forward]. If I commit, it seems to work but no new commits are reflected on the github site. Thoughts? Thanks!
Hi Casey, looks like the local branch is not in sync with the remote. You can try to do a git pull first and then do a push. You may even have to do a rebase, but do that with caution. Just to understand git rebase, watch this - ua-cam.com/video/KWAZl2QHC44/v-deo.html This can help - stackoverflow.com/questions/11696295/rejected-master-master-non-fast-forward#:~:text=%5Brejected%5D%20master%20%2D%3E%20master,pull')%20before%20pushing%20again.
Old video but thanks. I swear I made dozens of github repositories for different projects over the years and I still forget how to do this more than anything else.
A great video with nice explanations. But have one doubt that is how to resolve the conflicts in eclipse itself for Push and Pull. It would be great if such information will be shared for eclipse itself
Hi Rakesh, thanks for your message and feedback . There are some useful links, I will also try to add session on this stackoverflow.com/questions/21559119/how-to-resolve-conflicts-in-egit help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-113b.htm
Very nice explanation. Git has always been a scary but useful tech with a lot of things happening behind the scenes. Your explanation made it look simple. Thank you very much.
Hi Saurav If the project already exists in GitHub and you want to use it in Eclipse, you can clone the repository from GitHub. To do this, follow these steps: 1. Open Eclipse and go to **File** > **Import**. 2. In the Import dialog, select **Git** > **Projects from Git**. 3. Click **Next**. 4. In the **Clone URI** field, enter the URL of the GitHub repository. 5. Click **Next**. 6. In the **Select a Repository Location** dialog, select the location where you want to clone the repository. 7. Click **Next**. 8. In the **Select a Workspace** dialog, select the workspace where you want to open the project. 9. Click **Finish**. Eclipse will clone the repository from GitHub and open the project in your workspace. Once the project is open in Eclipse, you can push your code changes to GitHub by following these steps: 1. In Eclipse, right-click on the project and select **Team** > **Push**. 2. In the **Push** dialog, select the branch that you want to push your changes to. 3. Click **Push**. Eclipse will push your code changes to GitHub. Here are some things to keep in mind when working with a project that already exists in GitHub: * Make sure that you have the correct permissions to push code to the repository. * If you are making major changes to the project, it is a good idea to create a new branch so that you can keep your changes separate from the main branch. * Once you have pushed your code changes to GitHub, you should test the project to make sure that it works as expected
Before i found this video, I have first installed Egit on my Eclipse Oxygen. I follow your steps and when I'm about to configure git repository, an error pops up. Well, I resolved that by uninstalling Egit in the Eclipse Marketplace. Now, in the Step where I'm about to commit, I can't drag files from UNSTAGED CHANGES to STAGED CHANGES. What happened ?
when I right click > Team > I only get 2 options: 1) apply patch 2) share project. I do not have the same options you do...such as commmit. Please help
Hello Raghav, I am not able to drag and drop my project from Unstaged changes area to Staged Changes area Please help me. I can also see some options above the Unstages changes area Add selected files to index
Hi Sharan, I am not completely sure of the issue, I will suggest to try the exact steps on a new dummy project and check. Can also take some online help
@@RaghavPal Hi Raghav, I created another Project and tried the steps. It worked this time. Been at it for an hour now. Thank you Raghav for your prompt reply. You are a Gem!!.
Hi Raghav, I am not able to push my code through Eclipse because User & System setting tabs are are missing in Git Configuration window but I am trying to push my code through Command window and I followed the steps/commands "Git init, Git add Remote origin , Git Status, Gid add.,Git status, Git commit -m "test", Git push origin master". I created an SSH public key with the help of Putty, I shared that key while pushing the code to my Leader's repository, is it safe to share the public key? Please help as I have to push 7 more projects , do I have to create 7 times a public key? If you need, send some screenshots. Your help will be appreciated.
Hi, I'm getting below error when I tried to enter my valid github credential. I'm following your steps exactly. Error: Can't connect to any URI (not authorized) Can you please help me to find out issue here?
How is the project added to existing git repository without creating a new repository. I am following the same process as shown by you but the project is not getting uploaded in github.
@@RaghavPal Actually I forget how I did it for first time. I removed the project in eclipse and also removed local repository. (just want to rewind the process) Now after clone the repository to local and creating new maven project it is asking for group-id artifact-id. For sure I didn't given/entered all those information earlier during project creation.
Hi Brij, While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password To generate Access Token 1. Login to your GitHub account 2. Verify your email address, if it hasn't been verified yet. 3. In the upper-right corner of any page, click your profile photo, then click Settings. 4. In the left sidebar, click Developer settings. 5. In the left sidebar, click Personal access tokens. 6. Click Generate new token. 7. Give your token a descriptive name. 8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker 9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo. 10. Click Generate token
Abirami The "not authorized" error you're encountering when trying to push your repository from Eclipse to GitHub is a common issue that usually relates to authentication problems. Here are some steps you can take to resolve this: 1. Check Your Credentials: Make sure you are entering the correct username and password for your GitHub account. 2. Use Personal Access Token: If you have two-factor authentication enabled on GitHub, you will need to use a personal access token instead of your password when pushing from Eclipse 3. Update Eclipse and EGit: Ensure that you have the latest versions of Eclipse and the EGit plugin installed, as updates often include bug fixes for known issues. 4. Clear Stored Credentials: In Eclipse, go to `Window > Preferences > General > Security > Secure Storage` and clear the stored credentials. Then try pushing again and enter your credentials when prompted 5. Check SSH Key: If you are using SSH to push to GitHub, ensure that your SSH key is added to your GitHub account and that Eclipse is configured to use the correct key 6. Configure Git in Eclipse: Make sure that your Git configuration in Eclipse is set up correctly. This includes setting the remote repository URL and ensuring that the push and fetch configurations are correct 7. Check Network Connections: Sometimes, network issues can cause authentication problems. Verify that your internet connection is stable and that there are no firewalls or proxies blocking the connection 8. Consult GitHub Documentation: GitHub provides detailed documentation on how to troubleshoot issues related to authentication and pushing to repositories If you've tried these steps and are still facing issues, you might want to consider pushing from the command line to see if the problem is specific to Eclipse. This can also help you determine if the issue is with your local setup or with GitHub's authentication process. Remember to keep your credentials secure throughout this process..
How do we update the entire folder structure again to the repository. I deleted some files in my src/main/test folder and when I push this to upstream the folder in the git repo is not getting updated.
@@RaghavPal Yes but it works if you only make changes to the file. But if you delete a certain file in your folder and stage and commit that folder then the folder on the git is not getting updated. the git folder still shows the older files along with newly updated files.
Hi Yuvraj, have you used git rm file.txt command. This will help stackoverflow.com/questions/6313126/how-to-remove-a-directory-from-git-repository/6313301#6313301
@@RaghavPal Thanks for the reply. I don't want to remove the directory, I just want to update it with deleted file. E.g. I have folder called "com" - file1.java , file2.java, now if i delete file1.java from my eclipse and make changes to file2.java and commit push the file2 and the com folder then on git I can see file2.java getting updated but file1.java is still there. I have been trying to figure out. there must be some option in eclipse. I think i need to set up a dummy project and keep trying endlessly with various options available in the eclipse. Will share If i find the answer to it.
**UPDATE**
While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password
To generate Access Token
1. Login to your GitHub account
2. Verify your email address, if it hasn't been verified yet.
3. In the upper-right corner of any page, click your profile photo, then click Settings.
4. In the left sidebar, click Developer settings.
5. In the left sidebar, click Personal access tokens.
6. Click Generate new token.
7. Give your token a descriptive name.
8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker
9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.
10. Click Generate token
Is it compulsory from now on??
I believe yes, as I tried this from Eclipse, Jenkins etc. users say the same
Thanks for the update!
What after generating token?
I had generated token but every time when I commit i require to login again and I need that token again so from where I can get that token as mentioned in above steps if i follow same it shows token generated name but how to get that token ?
You are a true hero. This tutorial was minimal yet served the purpose really well. Kind of hard to find this kind of really informative videos.
I am so happy and humbled to see your message Sreedarsh. Thanks
Thanks a lot you are killing it .
You are a good teacher thanks for exact steps and all details while explaining would like to learn more from you
Thanks again .
Thanks for watching Aditya.
Is se behatar video nhi ho sakta na hi koi complex baatein naa hi koi lengthy code na hi koi waste of time u r just awesome
Thanks a lot for the kind words Juhi
Finally I found the video I've been looking for months. Thanks !!
So happy to know this Raja
Even though your video is 5 years old, u still are helping people by answering questions, you really are a legend.
You really helped me with this. So thanks a lot😊
Most weclome.. appreciate that!
thanks man, helped me alot. Learned something new today.
Happy to know this Daniel
@@RaghavPal wat to do if git is not there open perspective
thanks a lot, sir, for such a concise introduction to this whole github thing. Was struggling to dip my toe into these unknown waters. And I'm finally doing just that, thanks to you!
Glad to know it helped
I was discouraged with a lot of commands for DevOps. But when I stumbled on your video it gave me so much clarity. You videos are so simplified and I fine them very easy to assimilate. Thanks so much and God bless you with continues wisdom
So happy and humbled to see your message Veinita. Thanks a lot
Perfect, exactly what I was looking for. Thanks so much!
Happy to know it helped Daniel
I know it's a small thing, but thank you so much for this. I'm in the process of applying to jobs after graduating and I never really learned how to do this in undergrad (surprisingly few team projects, and the ones we had we all shared our code outside of github) so being able to go back now and upload all my code from the last couple years for job applications is a lifesaver.
So glad to know it helped you, William.
Best Wishes,
Raghav
FREE online courses - automationstepbystep.com/online-courses/
Thanks.. every time I forget something, I come here and catch up easily.
Always welcome Ashish
Thank you! The most helpful video on UA-cam about eclipse Git integration.
Glad to know that Erkc. thanks for watching.
After following user guides without success, watched your video and was able to immediately get Eclipse/GitHub working. Thank you! Look forward to watching your other videos.
Glad to know this
Love You My Friend for this wonderful video..❤
Thanks Abhilash
dude you just saved me from my supervisor in the first week of job... really useful and easy video. Thanks
Glad I could help Gaurav
This helpled me alot. Thank you so much for sharing your knowledge.
You're welcome Deepanshu
Hadn't used github in a long time and almost forgot the basics steps in eclipse. Thanks a lot dada.
You're welcome Upakaran
Real beginning is at 1:30
I was discouraged with a lot of commands for DevOps. But when I stumbled on your video it gave me so much clarity. You videos are so simplified and I fine them very easy to assimilate. Thanks so much and God bless you with continues wisdom❤
Thanks a lot Veinita
Thank you. I forgot how many steps it involved
Best video ever on UA-cam . Very Nice explanation step by step . Full Clearance 😍🥰
Glad it was helpful Sunny... humbled
Instruction still straightforward using Eclipse version Oxygen 3A. Thanks!
Glad to know this helped David
Step by step explanation very well doing sir 👍🔥
Thanks a lot
pulling concept is not clear, good content, thanks you!
Hi Sandip, I will try to add more clarification
I have been using git in our project for more than 6 months now, today I got to know how to configure it in eclipse. Its like a crash course of git.
Thanks!
So happy to know this Vilakshan
This is the fifth GitHub tutorial video I've watched and the first one that I felt was clear and concise! As a former math teacher, kudos to outlining the learning objectives in the start of the video. I was really glad to know specifically what was going to be taught in the video! Thanks!
You're very welcome! Logan. Humbled
Excellent video.
Learned in 11min what seemed so complicated at school during an entire day. Thank you.
You're very welcome!
Seriously as a fresher guy i waz stuck , u video made me so happy n resolved my ....👍😍
glad to know this Vishwa
Thank you!Great explanation!It took me hours to figure it out by myself and just 10 minutes with you :)
Glad it helped!
Just perfect! There are many movies telling how to do that, but this one is pure info with perfect sound n cam work.
10 min to get to know commit & push, git acc repos.
Rafał Thanks for your message
what is pull used for? is it for if you put something in the git repository or someone has changed the code working on their computer and theyve pushed and committed?
also how to delete the link between the two do I just delete the repository in Eclipse?
Thanks for the video by the way, really helpful :)
Hi, Pull will get the latest code from github repo
Hi, When starting Eclipse , I get a dialog asking to provide login details for username and password. I have never seen this before. Where is it coming from? What does it do? 10:23
Hi Kim, this is for adding your github credentials
Thanks for the tutorial! Github is pretty hard to understand at first and your tutorial was helping me a lot on my way to the initial commit.
Greetings from Austria!
You're welcome Max
I was looking for just this kind of video on git. Short and crisp explanation. Thanks a lot Raghav.
You're welcome Hari
Great video Raghav! I learned how to perform GIT push and pull using the command line.
Question, if I pulled automation code from GIT with a different computer that I code it on, will there be any problems with running the automation code on different computers? I haven't tried it yet with your method, but have had trouble in the past using the command line. Just thought I as if you ever encountered this problem. If yes, how did you resolve? Thanks.
Hi, when you do a git pull, you will get exactly what is available in the repository at the time of pulling. Now next thing can be your other settings, setup, hardware etc, which is outside git. If you have a supporting system and settings, you should be able to run your project w/o any issues
When providing my credentials when pushing, eclipse seems to enter in an endless loop of asking them, any clue in how to solve this?
Hi, are you giving password or Token
UPDATE****
While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password
To generate Access Token
1. Login to your GitHub account
2. Verify your email address, if it hasn't been verified yet.
3. In the upper-right corner of any page, click your profile photo, then click Settings.
4. In the left sidebar, click Developer settings.
5. In the left sidebar, click Personal access tokens.
6. Click Generate new token.
7. Give your token a descriptive name.
8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker
9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.
10. Click Generate token
Really saved too much complexity of un necessary things . Neat and clean way to make us understand got and GitHub
Glad it helped Sachin
I'm trying to follow steps in min 7:30 but on my eclipse I cant see the files inside the project, I see only the project name inside the Unstaged changes and no option to drag it to the staged changes. How can I see the files there?
Hi Dovrat, sorry for late reply. you should see the files that are changed since last commit. Pls tell me if this is resolved
@@RaghavPal Thanks for replying! That's the thing, I see the entire project, but not the actual files.. this is the first time I try to push it to github so there were no previous commits
Hey Raghav. I can't believe that you explained the whole concept in 11 minutes. Thank you so much. Very helpful.
Quick question: There are two options for Pull. "Pull" and "Pull.." in Selenium. Could you please explain the difference? Or is there another tutorial for which you can share the link. It will be really helpful.
Hi Sindiya, thanks for watching. Did you check what exactly Pull... says, there must be some complete word.
Hey. Thank you for responding.
There is no complete word. But I clicked on both the options and found the difference. With "Pull.." I get a window that asks me what kind of Pull should be performed.."Rebase", "Rebase interactively", "Merge". And with "Pull" (am guessing), it directly merges.
Excellent! A pleasant bonus from your presentation was learning about the existence and usefulness of Windows Magnifier. My 92 year old mother will be happy to learn about that. Thank you!
Glad it helped!
Thanks for this easy to follow steps! For step 4 I did not have the git repositories perspective, but git perspective worked too.
Great to know this.
Very good explaination, explained step by step process i think no one replace your explaination skills please continue , by watching your video any one can(New to github) can learn easily , finally usefull video thank you for you video..!
Thanks for the kind words Ramavath. I will
Thanks Raghav for a clear Explanation by mentioning all the required inputs.
Glad it was helpful Ravi
Hi Raghav, what is the difference between Push and Pull options?
I think the Pull option prominence was not covered here.
I will add more sessions on this Susruth
Thanks Bro! this is really helpful. I have just one suggestion and please don't take it otherwise. when I was watching your video, i felt that you spoke little faster at some point of time. so please take your time and don't worry if you take some more mins for your video after your helping all of us.So we don't mind in that too.
Hi, thanks for the feedback. Will take it.
ha ha ...
Is it safe to assume that one must first create the repository in Github? When I greate a new Git repository in Eclipse, share the project with the new Git repository and do the initial commit to Github, it doesnt work( i.e. the repository is not autmatically created in Guthub)?
Hi Robert
Yes, it is safe to assume that you must first create the repository in GitHub. When you create a new Git repository in Eclipse, it does not create the repository on GitHub. It simply creates a local repository on your computer. You can then push the local repository to GitHub.
To push the local repository to GitHub, follow these steps:
1. In Eclipse, right-click on the project and select Team, Share Project.
2. In the Share Project dialog box, select Git and click Next.
3. In the Configure Git Repository dialog box, select the checkbox next to "Create repository on remote server".
4. In the Remote Repository URL field, enter the URL of the GitHub repository.
5. Click Finish.
Eclipse will now push the local repository to GitHub. You can then view the repository on GitHub by going to the GitHub website and logging in to your account.
Here are some additional tips for pushing a local repository to GitHub:
* If you are using a private GitHub repository, you will need to enter your username and password when prompted.
* If you are using a public GitHub repository, you can skip this step.
* If you are pushing a large repository, it may take some time for the push to complete.
If you are still having trouble pushing your local repository to GitHub, you can try the following:
1. Make sure that you have entered the correct URL for the GitHub repository.
2. Make sure that you are logged in to GitHub.
3. Make sure that you have the correct permissions to push to the repository.
4. Try restarting Eclipse.
5. Try restarting your computer.
@@RaghavPal Thank you so much for your step by step instruction. I tried for hours to push my local repository to Github, without success.😀
Thankyou for the wonderful explanation..I dont find where pull is used in your video.Could you please clarify?
Thanks for watching Radha, Pull is to get a repo or changes from remote repository
You have a very kind soul.
i hate eclipse so much but you gave me a moment of clarity with it. Thank you man
You're welcome Ron
Hello Raghav
This video helped me a lot trying to connect my ide to my GitHub account and vice versa. The way you explained makes it so simple. Thanks a ton and good luck.
You are most welcome Sumithra
Perfect, straight forward and simple video, I have been looking on this topic. Well, I was stuck on this from the last two months. Thanks, bro.
You're welcome Shivam.
Glorious, was having lots of problems with import > git. This walkthrough worked a charm. Appreciate you taking the time to make this video :)
You're welcome Zac
hellow MR RAGHAF kindly, just as a note on step 4 : Goto Perspective - Git Repositories( and click on Add Git Repo). is the correct to say (clone a git repository and add the clone to this view) ?? thanks alot.
Hi Hazim, you can do that
@@RaghavPal warm regards
Finally, i understand how it works! Thank you. Very helpful!
Glad it helped!
same! :)
One question whatever we commit here that will go to which branch ?? And what if i want to commit and push to certain branch then ?
The branch that is checked out, Generally the master branch in case you have not created and checked out any other branch
We have to install git before doing this or without installing git it can be done as shown in vedio?
Hi Prayag, it using Git Plugin within Eclipse, can be done without installing Git on the system
Hi Raghav, 1. when i click on "Commit and Push" button in Eclipse. User credentials pop up occurring frequently, even after the entering the user and Password fields. How to overcome it?
Amarnath
When you encounter frequent user credential pop-ups while clicking the "Commit and Push" button in Eclipse, there are a few steps you can take to address this issue:
1. Change the HTTP Client:
- Go to Window → Preferences → Team → Git.
- Select the HTTP client option and change it from Apache HTTP to Java Built-in HTTP¹.
- This switch might help resolve the repeated authentication requests.
2. Generate a Personal Access Token (PAT):
- If you're using Visual Studio Team Services (VSTS) or Azure DevOps, consider creating a Personal Access Token.
- Visit your VSTS or Azure DevOps account settings and generate a new token.
- Use this token as your password when prompted during authentication¹.
3. Check Your Git Server Configuration:
- Ensure that your Git server is correctly set up with your username and password.
- Confirm that the authentication and authorization solution is configured appropriately.
- If you're using TFS plugin for Eclipse, make sure it's set up correctly¹.
4. Use Commit Dialog Instead of Staging View:
- Instead of using the Git staging view for committing, try using the commit dialog.
- The "Commit and Push" button might behave differently in the commit dialog².
Remember that these solutions are based on common scenarios, and your specific environment might require additional adjustments. If the issue persists, consider seeking further assistance from your team or community forums.
Thanks you , This what exactly a real developer required. Keep Posting more videos which will helpful for us.
Thank you, I will
Thanks, I want to know if I want to take update entire workspace or src or webContent , Please upload the video regarding
Sure Prashant
Is it possible to only commit specific file types like:
.xml | .xsd | .xsl | .ps1 | .txt | .bat | .cmd | .reg | .config | .cfg | .ini | .old | .js
and so on?
So that it will not commit .png files and all large stuff I don't need in the repository?!
Hi Benjamin, you can use .gitignore file to add resources, file, folders that you do not want to commit.
@@RaghavPal thanks for the answer.
I found that command online but not sure where to enter it in Eclipse.
I'll Google it. 👍🏻
Very simply and effectively explained and achieved the objective. Keep up the good work.
Thanks for watching Ashfaq
Great sir,In a short video you explained in a simple manner.
Thanks for liking Naga
Explained very well which topics are covered but unfortunately no pull request is shown although in the title Pull mentioned.
I will check and create a new video Jit
Hey you are great ....your way of teaching is simply awsome...I wish you to reach great heights through learning and helping others learn....
Thanks a lot Vignesh
Appreciate your efforts, however one thing needs to be considered while teaching is that, you know all Git Eclipse and all included in it, but the viewers or the learners don’t, that’s why they’re here. Therefore you should explain the purpose of every step. Ex, at the start of the video you should have also introduced about what is Git, Eclipse and why both are used together, why cloning is done and all other terms. Anyways just a suggestion.
Hi Jitendra, appreciate your feedback. This video is part of this playlist - ua-cam.com/play/PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG.html
This was very helpful since i keep forgetting how to use github with eclipse! A problem I am having is having all the files show up in the package explorer. I tried pulling, but nothing happens. All the files are only shown in the Git Repo tab instead
Hi
If you are working with a Git repository in Eclipse, but you are not seeing all the files in the Package Explorer, it may be because you have not imported them into the workspace.
To import the files into your workspace, you can follow these steps:
Right-click on the Project Explorer or Package Explorer window.
Select "Import..." from the context menu.
In the Import wizard, expand the "General" folder and select "Existing Projects into Workspace".
Click "Next".
In the "Select root directory" field, browse to the location of the Git repository on your local file system.
Check the box next to the project(s) you want to import.
Click "Finish".
This should import the files into your workspace and make them visible in the Package Explorer. If you still don't see them, try refreshing the Package Explorer by right-clicking on it and selecting "Refresh". If you still have issues, it may be helpful to check the project's build path settings to ensure all necessary files are included.
This is what exactly i was looking for and could not find in any other videos. Thanks a ton for this video.
I was able to push my code into GITHUB , super happy :)
Glad to know this Yash.
Really it is very helpful. I have gone long session to understand it but from eclipse it is too easy. Very Good video
Happy to know this Shibaram
Thanks for sharing your knowledge.. Can you tell.. how much videos you will create more to complete this GitHub series (approx)??
Hi Rachit, if you specifically need git and github here is the playlist - ua-cam.com/channels/Tt7pyY-o0eltq14glaG5dg.htmlplaylists
Thanks :)
Hey mate! What basics or foundations do I need to learn automation?So far, I know the foundations of Java
Hi Fernando, knowing java will be a good foundation. I suggest that you can now start with Automation and select tools/skills based on your need. Any new skill you need can be learnt along.
Automation Step by Step - Raghav Pal amazing! Thank you very much for the advice!
Hi Raghav,
Thanks for this, it was excellent. Using github for the first time myself and your video was great.
Glad it helped Christopher
Very nicely explained. Thank you. Actually video didn't cover Pull topic. Covers only clone, commit & push. Please share me if any video covers about it and the other options in eclipse->git repository other than cloning.
Will upload soon Raj
Thanks, Raghav! Followed step by step and uploaded my project to the git. Well explained!
Glad it helped Anu
Extremely helpful. That too in a short and crisp way. Awesome!!!
Glad to know this Harish
I am trying to add eclipse project to GitHub from my remote desktop as all my development work is done on the remote desktop. Can this be done? When I followed the steps in the video, it is not authenticating using my GitHub credentials.
Hi Lavanya,
Yes, you can add your Eclipse project to GitHub from your remote desktop. Here are the steps you can follow:
Open your Eclipse project and navigate to the directory where your project is saved.
Right-click on your project and select "Team" -> "Share Project".
In the "Share Project" window, select "Git" and click "Next".
Select the project root directory and click "Create Repository".
In the "Create Git Repository" window, select the "Use or create repository in parent folder of project" option and click "Finish".
Once the repository is created, you can commit your changes by right-clicking on your project and selecting "Team" -> "Commit".
Enter your commit message and click "Commit and Push".
In the "Push to Upstream" window, select the remote branch you want to push to and click "Next".
Enter your GitHub credentials when prompted and click "Finish".
If you are having trouble authenticating with your GitHub credentials, make sure you have configured your Git settings with your username and email address. You can do this in the command line by running the following commands:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
Once you have configured your Git settings, try authenticating again with your GitHub credentials. If you are still having trouble, make sure you have the correct username and password and that your internet connection is working properly.
I am a bit confused.. We develop script on eclipse and integrate eclipse with jenkins. Then give github details on jenkins. Then jenkins and github talks to each other to execute test scripts on scheduled basis. Now where lies the chrome driver and jar files required to run the browser ? Where all the tests run in real time sir ? In company's computer ? How all these things really happens inside a company ? Just for practice purposes we use our local computer. Please clarify on this sir. Thank u
Hi, If we talk about project enterprise level, then here is a typical workflow.
1. Developers create code and push it on a shared repository using version control systems like git
Here we can have a dev job on Jenkins that compiles and builds the dev project on each commit.
2. After the final commit and test its pushed and a Jenkins job can be used to deploy it on a server (test environment)
3. On successful deployment, this triggers the testing job that runs some automated tests to verify the build (BVT - Build verification test)
4. On success, this triggers another regression or complete test suite job
5. The verified build then goes into production.
Thanks, l successfully push my project from eclipse to github repository but the new updated GitHub can’t allowed me to send my project to my manager. Please do you have idea on how to do it?
I mean to send the project via email. They just updated the GitHub repository because the old system allowed to send project to email without stress. I have been trying to do this with many instructions and guidelines but it won’t work.
Thanks
Hi Korede, What exactly you need, sharing a project through github should be as simple as sharing the github repository url
Automation Step by Step - Raghav Pal Thanks friend. I have gotten the solution
Automation Step by Step - Raghav Pal Do you have selenium live projects?
That’s on healthcare, e-commerce, insurance, logistic, telecoms and co?
Raghav, thanks for a great video--I'm a teacher and I'm very impressed. I do have a problem that I don't believe was addressed in the video. When I Commit and Push I get master->master [rejected - non-fast-forward]. If I commit, it seems to work but no new commits are reflected on the github site. Thoughts? Thanks!
Hi Casey, looks like the local branch is not in sync with the remote. You can try to do a git pull first and then do a push.
You may even have to do a rebase, but do that with caution. Just to understand git rebase, watch this - ua-cam.com/video/KWAZl2QHC44/v-deo.html
This can help - stackoverflow.com/questions/11696295/rejected-master-master-non-fast-forward#:~:text=%5Brejected%5D%20master%20%2D%3E%20master,pull')%20before%20pushing%20again.
@@RaghavPal Thanks Raghav. I will try this.
Old video but thanks. I swear I made dozens of github repositories for different projects over the years and I still forget how to do this more than anything else.
Glad it helped Burten
Did everything in 11min true time saver! thank for such a great video!
Thanks for watching Adam
A great video with nice explanations. But have one doubt that is how to resolve the conflicts in eclipse itself for Push and Pull. It would be great if such information will be shared for eclipse itself
Hi Rakesh, thanks for your message and feedback . There are some useful links, I will also try to add session on this
stackoverflow.com/questions/21559119/how-to-resolve-conflicts-in-egit
help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-113b.htm
Very nice explanation. Git has always been a scary but useful tech with a lot of things happening behind the scenes. Your explanation made it look simple. Thank you very much.
You're very welcome Srinivas
what happens if the project already exists in the Git hub and we as a developer can use the project and push codes to it.
Hi Saurav
If the project already exists in GitHub and you want to use it in Eclipse, you can clone the repository from GitHub. To do this, follow these steps:
1. Open Eclipse and go to **File** > **Import**.
2. In the Import dialog, select **Git** > **Projects from Git**.
3. Click **Next**.
4. In the **Clone URI** field, enter the URL of the GitHub repository.
5. Click **Next**.
6. In the **Select a Repository Location** dialog, select the location where you want to clone the repository.
7. Click **Next**.
8. In the **Select a Workspace** dialog, select the workspace where you want to open the project.
9. Click **Finish**.
Eclipse will clone the repository from GitHub and open the project in your workspace.
Once the project is open in Eclipse, you can push your code changes to GitHub by following these steps:
1. In Eclipse, right-click on the project and select **Team** > **Push**.
2. In the **Push** dialog, select the branch that you want to push your changes to.
3. Click **Push**.
Eclipse will push your code changes to GitHub.
Here are some things to keep in mind when working with a project that already exists in GitHub:
* Make sure that you have the correct permissions to push code to the repository.
* If you are making major changes to the project, it is a good idea to create a new branch so that you can keep your changes separate from the main branch.
* Once you have pushed your code changes to GitHub, you should test the project to make sure that it works as expected
Before i found this video, I have first installed Egit on my Eclipse Oxygen. I follow your steps and when I'm about to configure git repository, an error pops up. Well, I resolved that by uninstalling Egit in the Eclipse Marketplace. Now, in the Step where I'm about to commit, I can't drag files from UNSTAGED CHANGES to STAGED CHANGES. What happened ?
Not sure why are you facing this. Did you try restarting.
when I right click > Team > I only get 2 options: 1) apply patch 2) share project. I do not have the same options you do...such as commmit. Please help
do you have any git plugin added in eclipse pls check
Very nice and straightforward video !! That’s what we need .try to explain the screen where you just clicked ok when it showed master option
Thanks for watching Liza, I will try do another detailed session
Hello Raghav,
I am not able to drag and drop my project from Unstaged changes area to Staged Changes area
Please help me.
I can also see some options above the Unstages changes area
Add selected files to index
Hi Sharan, I am not completely sure of the issue, I will suggest to try the exact steps on a new dummy project and check. Can also take some online help
@@RaghavPal
Hi Raghav,
I created another Project and tried the steps. It worked this time.
Been at it for an hour now.
Thank you Raghav for your prompt reply. You are a Gem!!.
Great tutorial as always... Thanks Raghav... Need more videos on Java series.
Can check here - automationstepbystep.com/
thanks for watching
Hi Raghav, I am not able to push my code through Eclipse because User & System setting tabs are are missing in Git Configuration window but I am trying to push my code through Command window and I followed the steps/commands "Git init, Git add Remote origin , Git Status, Gid add.,Git status, Git commit -m "test", Git push origin master". I created an SSH public key with the help of Putty, I shared that key while pushing the code to my Leader's repository, is it safe to share the public key? Please help as I have to push 7 more projects , do I have to create 7 times a public key? If you need, send some screenshots. Your help will be appreciated.
Hi Purvi,
Not sure why are you not able to follow the steps. Can you try with a diff ver of eclipse and check if the options are different
Hi, I'm getting below error when I tried to enter my valid github credential. I'm following your steps exactly.
Error: Can't connect to any URI (not authorized)
Can you please help me to find out issue here?
Hi Prateek, can try using token stackoverflow.com/questions/32527522/how-to-github-two-factor-authentication-with-eclipse/32528440
How is the project added to existing git repository without creating a new repository.
I am following the same process as shown by you but the project is not getting uploaded in github.
Hi, here I am creating a new repo and then adding the project to it. Are you facing any errors
A very good series of tutorial Raghav..!! Much appreciated..In this last video,I think pull request and Fork from Gitlab portion is missing
Will. plan a session on this Nakul
if github is having maven project, even then we have to create normal java project in eclipse(after cloning)? Or is there any different way ?
You can do in a maven project itself Raj
@@RaghavPal Actually I forget how I did it for first time. I removed the project in eclipse and also removed local repository. (just want to rewind the process) Now after clone the repository to local and creating new maven project it is asking for group-id artifact-id. For sure I didn't given/entered all those information earlier during project creation.
Np, you can give now. You can check ua-cam.com/video/nCJoia7wosc/v-deo.html
What if i did not create a project but i want to connect to an already created project? This example is when you create a project
You have options to do that, can also check some online examples
are we obliged to drag and drop unstaged changes to changes changes? thank you
You can add the ones that you need to commit and push to the repository
Hello
At 8:06 my username and password not working. I'm logged in on github
Hi Brij,
While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password
To generate Access Token
1. Login to your GitHub account
2. Verify your email address, if it hasn't been verified yet.
3. In the upper-right corner of any page, click your profile photo, then click Settings.
4. In the left sidebar, click Developer settings.
5. In the left sidebar, click Personal access tokens.
6. Click Generate new token.
7. Give your token a descriptive name.
8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker
9. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.
10. Click Generate token
Thank you so much! Couldn't find any other guides online to help!
Glad to know this helped Jonah
Sir I had a doubt on it...I try to push repository but the problem occurred that the alert box told not authorized what can I do next
Abirami
The "not authorized" error you're encountering when trying to push your repository from Eclipse to GitHub is a common issue that usually relates to authentication problems. Here are some steps you can take to resolve this:
1. Check Your Credentials: Make sure you are entering the correct username and password for your GitHub account.
2. Use Personal Access Token: If you have two-factor authentication enabled on GitHub, you will need to use a personal access token instead of your password when pushing from Eclipse
3. Update Eclipse and EGit: Ensure that you have the latest versions of Eclipse and the EGit plugin installed, as updates often include bug fixes for known issues.
4. Clear Stored Credentials: In Eclipse, go to `Window > Preferences > General > Security > Secure Storage` and clear the stored credentials. Then try pushing again and enter your credentials when prompted
5. Check SSH Key: If you are using SSH to push to GitHub, ensure that your SSH key is added to your GitHub account and that Eclipse is configured to use the correct key
6. Configure Git in Eclipse: Make sure that your Git configuration in Eclipse is set up correctly. This includes setting the remote repository URL and ensuring that the push and fetch configurations are correct
7. Check Network Connections: Sometimes, network issues can cause authentication problems. Verify that your internet connection is stable and that there are no firewalls or proxies blocking the connection
8. Consult GitHub Documentation: GitHub provides detailed documentation on how to troubleshoot issues related to authentication and pushing to repositories
If you've tried these steps and are still facing issues, you might want to consider pushing from the command line to see if the problem is specific to Eclipse. This can also help you determine if the issue is with your local setup or with GitHub's authentication process. Remember to keep your credentials secure throughout this process..
@@RaghavPal thank you so much sir clarify my doubt 🥰🥰
How do we update the entire folder structure again to the repository. I deleted some files in my src/main/test folder and when I push this to upstream the folder in the git repo is not getting updated.
Hi Yuvraj, Have to tried to stage & commit first before pushing.
@@RaghavPal Yes but it works if you only make changes to the file. But if you delete a certain file in your folder and stage and commit that folder then the folder on the git is not getting updated. the git folder still shows the older files along with newly updated files.
Hi Yuvraj, have you used git rm file.txt command. This will help
stackoverflow.com/questions/6313126/how-to-remove-a-directory-from-git-repository/6313301#6313301
@@RaghavPal Thanks for the reply. I don't want to remove the directory, I just want to update it with deleted file. E.g. I have folder called "com" - file1.java , file2.java, now if i delete file1.java from my eclipse and make changes to file2.java and commit push the file2 and the com folder then on git I can see file2.java getting updated but file1.java is still there. I have been trying to figure out. there must be some option in eclipse. I think i need to set up a dummy project and keep trying endlessly with various options available in the eclipse. Will share If i find the answer to it.
Okay, got you, Pls see if this helps - stackoverflow.com/questions/8241509/eclipse-git-plugin-remove-file-from-repo-without-deleting-local