Introduction to GitLab Desktop
GitLab Desktop is the client application that integrates with GitLab, a web-based Git repository manager. It enhances the Git workflow by providing a graphical interface for managing repositories, branches, commits, and merges. This desktop application is designed to simplify the interaction with Git repositories, making version control more accessible to developers of all skill levels.
Key Features and Benefits
GitLab Desktop offers several features that distinguish it from other Git clients:
-
Graphical Interface: Unlike command-line Git, GitLab Desktop provides a visual representation of repositories and branches, making it easier to navigate and manage projects.
-
Repository Management: Users can clone, create, and delete repositories directly from the desktop application, streamlining the setup process for new projects.
-
Branching and Merging: Handling branches and merging changes is simplified with intuitive tools, reducing the complexity of collaborative development.
-
Commit History: Visualize commit history, compare changes, and revert to previous versions effortlessly, enhancing project traceability and stability.
-
Integration with GitLab: Seamless integration with GitLab’s web interface ensures synchronization between desktop and web versions, enabling consistent project management.
-
Cross-Platform Compatibility: GitLab Desktop supports Windows, macOS, and Linux platforms, catering to diverse development environments.
Getting Started with GitLab Desktop
To begin using GitLab Desktop, follow these simple steps:
-
Download and Install: Visit the GitLab website to download the desktop application compatible with your operating system. Install the application following the setup instructions provided.
-
Authenticate with GitLab: Upon launching GitLab Desktop, log in to your GitLab account to synchronize your repositories and access project data.
-
Clone a Repository: Clone an existing repository from GitLab or create a new one directly from the desktop interface. This step initializes your local copy of the project.
-
Branching and Committing: Create branches to work on specific features or fixes. Make changes to files, commit them with descriptive messages, and push your commits to the remote repository.
-
Collaborate and Merge: Collaborate with team members by pulling their changes, reviewing merge requests, and resolving conflicts using GitLab Desktop’s integrated tools.
Installation Methods for GitLab: Official and Unofficial Approaches
GitLab, a comprehensive DevOps platform, offers various installation methods tailored to different environments and needs. These methods are divided into official, supported installations and unofficial, unsupported installations. Understanding the nuances of these approaches helps users choose the best option for their specific use cases.
Official, Supported Installation Methods
-
DockerDocker provides a streamlined way to deploy GitLab using containerization technology. Official GitLab Docker images are maintained to ensure compatibility and ease of use. Docker allows for quick setup, scaling, and management of GitLab instances, making it a popular choice for those familiar with container orchestration. Users can follow the detailed install instructions provided by GitLab to deploy and manage their GitLab instances via Docker effectively.
-
Reference ArchitecturesGitLab’s reference architectures offer recommended deployment topologies that cater to different scales and needs. These architectures are designed to provide optimal performance, reliability, and scalability for GitLab deployments. By following these architected guidelines, users can ensure that their GitLab instance is deployed in a manner consistent with best practices. Detailed installation instructions help users implement these recommended topologies efficiently.
-
Installation from SourceFor users who prefer or require direct access to the source files, GitLab provides instructions for installing from source on Debian/Ubuntu systems. This method offers greater control and customization, allowing users to tailor the GitLab installation to their specific requirements. While this approach may be more complex and time-consuming, it provides flexibility for advanced configurations.
-
GitLab Environment Toolkit (GET)The GitLab Environment Toolkit automates the deployment of GitLab reference architectures using Terraform and Ansible. This toolkit simplifies the process of setting up a robust and scalable GitLab environment by leveraging infrastructure as code (IaC) principles. By following the provided install instructions, users can efficiently deploy GitLab with minimal manual intervention.
Unofficial, Unsupported Installation Methods
-
Debian Native PackageMaintained by Pirate Praveen, this method involves installing GitLab as a native Debian package. While not officially supported by GitLab, this approach may be suitable for users who prefer using Debian’s package management system. Detailed instructions guide users through the installation process.
-
FreeBSD PackageTorsten Zühlsdorff maintains an unofficial FreeBSD package for GitLab. This method caters to users running FreeBSD systems, providing them with a way to deploy GitLab within their preferred operating environment. Installation instructions are available to assist users in setting up GitLab on FreeBSD.
-
Arch Linux PackageThe Arch Linux community maintains an unofficial package for installing GitLab on Arch Linux. This method is ideal for Arch Linux enthusiasts who want to integrate GitLab into their system. The community-provided instructions help users navigate the installation process.
-
Puppet ModuleVox Pupuli offers an unofficial Puppet module for GitLab installation. This approach is useful for users who use Puppet for configuration management and want to deploy GitLab using this tool. Installation instructions provided by Vox Pupuli assist in setting up GitLab with Puppet.
-
Ansible PlaybookJeff Geerling maintains an unofficial Ansible playbook for GitLab installation. This method is suitable for users who prefer using Ansible for automation and configuration management. The provided instructions guide users through deploying GitLab using this playbook.
-
GitLab Virtual Appliance (KVM)OpenNebula provides an unofficial GitLab virtual appliance for KVM environments. This method is designed for users who prefer deploying GitLab as a virtual appliance within their KVM infrastructure. Detailed installation instructions assist users in setting up GitLab as a virtual appliance.
-
GitLab on CloudronCloudron offers an unofficial method for deploying GitLab via the Cloudron App Library. This approach is convenient for users who manage applications using Cloudron. The provided instructions help users install and manage GitLab within the Cloudron environment.
Advanced Features and Tips
Explore these advanced features to maximize your GitLab Desktop experience:
-
Issue Tracking: Link commits to GitLab issues directly from the desktop, improving project management and traceability.
-
Extensions and Customizations: Customize GitLab Desktop with extensions and plugins to enhance functionality tailored to your workflow requirements.
-
Automation and CI/CD Integration: Integrate GitLab Desktop with GitLab CI/CD pipelines for automated testing, deployment, and continuous integration workflows.
Key Takeaway
-
User-Friendly Interface: GitLab Desktop offers a graphical interface that simplifies Git repository management compared to command-line tools.
-
Seamless Integration: It integrates smoothly with GitLab’s web interface, ensuring synchronization and consistency in project management.
-
Cross-Platform Support: Compatible with Windows, macOS, and Linux, catering to diverse developer environments.
-
Enhanced Collaboration: Facilitates efficient teamwork through features like branching, merging, and integrated issue tracking.
-
Free and Open-Source: Available for free, aligning with GitLab’s commitment to open-source collaboration tools.
Conclusion
GitLab Desktop stands out as a powerful tool for version control, offering a user-friendly interface coupled with robust Git capabilities. Whether you’re a solo developer or part of a large team, GitLab Desktop enhances productivity and facilitates efficient collaboration through seamless integration with GitLab repositories. Embrace the future of software development with GitLab Desktop and streamline your workflow today.
FAQ
Q1: Can I use GitLab Desktop with GitLab.com and self-hosted GitLab instances?
Yes, GitLab Desktop supports both GitLab.com and self-hosted GitLab instances, providing flexibility based on your hosting preferences.
Q2: Does GitLab Desktop support SSH authentication for secure repository access?
Yes, GitLab Desktop supports SSH authentication, ensuring secure communication between the desktop client and GitLab repositories.
Q3: Is GitLab Desktop free to use?
Yes, GitLab Desktop is available for free, aligning with GitLab’s commitment to open-source collaboration tools.
Article Sources
-
GitLab Official Website: GitLab
-
GitLab Desktop Documentation
-
GitLab Official Website
-
GitLab Desktop GitHub Repository
-
GitLab Desktop Support Community
-
GitLab Desktop Blog
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign up
Setting up GitLab Desktop on your Windows computer can seem difficult, but it’s easier than you think. This guide will walk you through the steps to get GitLab Desktop up and running smoothly. From downloading and installing to managing repositories and collaborating with your team, we’ve got you covered. By the end of this guide, you’ll be ready to use GitLab Desktop like a pro.
Key Takeaways
- GitLab Desktop makes it easy to manage your Git repositories with a graphical interface.
- The application is compatible with Windows, macOS, and Linux, making it versatile for different users.
- You can clone, create, and manage repositories directly from the desktop app.
- Branching, committing, and pushing changes are simplified with GitLab Desktop’s tools.
- The guide includes troubleshooting tips to help you resolve common issues.
System Requirements for GitLab on Windows
Before diving into the installation of GitLab on your Windows machine, it’s crucial to ensure your system meets the necessary requirements. This will help GitLab run smoothly and efficiently.
Minimum Hardware Specifications
To get started with GitLab on Windows, your system should at least have:
- Processor: 4 cores
- Memory: 4 GB RAM
- Disk Space: 25 GB
- Operating System: Windows 7 or later
While these are the minimum requirements, having a more powerful system will provide a better experience, especially if you plan to use advanced features like GitLab Ultimate or GitLab Premium.
Recommended Software Packages
Before installing GitLab, you need to have some essential software packages installed on your Windows machine:
- Git for Windows: This is the version control system used by GitLab. You can download it from the official website.
- Docker for Windows: Docker is a containerization platform that GitLab uses. Download it from the Docker website.
- OpenSSH: Used by GitLab to securely transfer files. You can install it using the Git for Windows installer.
Installing these packages ensures that GitLab runs smoothly and efficiently on your system.
Checking System Compatibility
Before proceeding with the installation, it’s a good idea to check if your system is compatible with GitLab. Make sure you have administrative privileges on your machine and that your system meets the minimum hardware specifications mentioned above.
Ensuring your system meets these requirements is the key to a smooth and efficient GitLab experience.
Downloading and Installing GitLab Desktop
Getting GitLab Desktop up and running on your Windows machine is a straightforward process. Follow these steps to ensure a smooth installation experience.
Authenticating and Setting Up Your GitLab Account
Setting up your GitLab account on the desktop app is a breeze. Follow these steps to get started quickly and securely.
Logging into GitLab Desktop
First, open the GitLab Desktop app and click on the gitlablogin button. Enter your username or email and password. If you have enabled two-factor authentication (2FA), you will be prompted to enter your 2FA code. This extra layer of security ensures that only you can access your account.
Synchronizing Repositories
Once logged in, you can synchronize your local repositories with your GitLab account. This allows you to keep your work up-to-date across different devices. Simply click on the ‘Sync’ button and select the repositories you want to synchronize.
Configuring Account Settings
To configure your account settings, go to the ‘Settings’ tab in the GitLab Desktop app. Here, you can update your profile information, manage SSH keys, and set up notifications. Keeping your settings updated helps you stay organized and secure.
Remember, setting up two-factor authentication (2FA) provides an additional level of security to your GitLab account. For others to access your account, they would need your password and the 2FA code.
By following these steps, you’ll have your GitLab account set up and ready to go in no time. Happy coding!
Cloning and Managing Repositories
How to Clone a Repository
Cloning a repository in GitLab is a straightforward process. First, navigate to the repository you want to clone on GitLab. Next, copy the HTTPS or SSH URL provided. Open your terminal and run the git clone
command followed by the URL. This will create a local copy of the project on your machine, allowing you to work on it offline.
Creating a New Repository
To create a new repository in GitLab, log into your account and navigate to the ‘Projects’ section. Click on ‘New Project’ and fill in the required details like project name and visibility level. Once done, click ‘Create Project’. You can now link this project to a local repository by using the git remote add origin
command followed by the project URL.
Managing Repository Settings
Managing your repository settings is crucial for maintaining a well-organized project. In the repository settings, you can configure various options such as branch protection, access levels, and webhooks. Regularly review and update these settings to ensure your repository remains secure and efficient.
Tip: Regularly check your repository settings to keep your project secure and well-organized.
Branching, Committing, and Pushing Changes
Creating and Switching Branches
Creating a new branch in GitLab Desktop is straightforward. Use the command git checkout -b NAME-OF-BRANCH
to create and switch to a new branch. If you need to switch to an existing branch, simply use git checkout NAME-OF-BRANCH
. This allows you to work on different features or fixes without affecting the main codebase.
Committing Changes
Once you’ve made changes, it’s time to commit them. Use git add CHANGES IN RED
to stage your changes. Then, commit them with a clear message using git commit -m "DESCRIBE THE INTENTION OF THE COMMIT"
. Clear commit messages are crucial for maintaining a readable project history.
Pushing Changes to Remote Repository
After committing your changes, push them to the remote repository with git push REMOTE NAME-OF-BRANCH
. This ensures your changes are saved on the server and accessible to your team. If you encounter issues, check your network connection and remote repository settings.
Remember, following these steps ensures a smooth DevOps workflow, making collaboration and code management more efficient.
Collaborating with Team Members
Pulling Changes from Others
When working on a project, it’s essential to stay updated with the latest changes made by your team. To do this, you can pull changes from the remote repository. This ensures that your local copy is synchronized with the most recent updates. Use the following command to pull changes:
$ git pull origin main
This command fetches and merges changes from the main branch of the remote repository into your local branch.
Reviewing and Merging Requests
Code reviews are a crucial part of the development process. They help maintain code quality and foster collaboration. In GitLab, you can review and merge requests through merge requests. This feature allows you to review code changes, discuss improvements, and merge the changes into the main branch once approved.
To create a merge request:
- Navigate to your project in GitLab.
- Click on Merge Requests in the sidebar.
- Click on New Merge Request.
- Select the source and target branches.
- Add a title and description, then click Create Merge Request.
Resolving Merge Conflicts
Merge conflicts occur when changes from different branches conflict with each other. Resolving these conflicts is essential to ensure a smooth integration of code. GitLab provides tools to help you resolve conflicts directly within the platform.
To resolve merge conflicts:
- Open the merge request with conflicts.
- Click on Resolve Conflicts.
- Use the editor to manually resolve the conflicts.
- Once resolved, click Mark as Resolved.
- Commit the changes to finalize the resolution.
Note: Effective collaboration enhances productivity and fosters trust among team members, making it essential for successful project development.
By following these steps, you can ensure that your team works together seamlessly, leveraging each member’s unique skills and expertise for faster problem-solving.
Advanced Features of GitLab Desktop
Issue Tracking Integration
One of the standout features of GitLab Desktop is its issue tracking integration. This allows you to link commits directly to GitLab issues, enhancing project management and traceability. By connecting your commits to specific issues, you can easily track progress and ensure that all tasks are accounted for.
Using Extensions and Plugins
GitLab Desktop supports a variety of extensions and plugins, enabling you to customize the application to fit your workflow. Whether you need additional functionality or want to streamline certain tasks, these extensions can significantly boost your productivity. Popular plugins include those for code review, project management, and automation.
CI/CD Pipeline Integration
Integrating GitLab Desktop with GitLab’s CI/CD pipelines allows for automated testing, deployment, and continuous integration workflows. This feature ensures that your code is always up-to-date and that any changes are automatically tested and deployed. By leveraging CI/CD integration, you can maintain a high level of code quality and reduce the risk of errors.
Explore these advanced features to maximize your GitLab Desktop experience and streamline your development workflow.
Optimizing GitLab Desktop for Performance
Adjusting Performance Settings
To get the best out of GitLab Desktop, start by tweaking the performance settings. Adjusting these settings can significantly enhance your experience. Navigate to the settings menu and look for options related to performance. Here, you can allocate more memory or adjust the CPU usage to better suit your needs.
Managing Large Repositories
Handling large repositories can be challenging. To manage them effectively, consider organizing your codebase by creating folders in GitLab repositories. This not only helps in keeping things tidy but also improves the overall performance of the application. Regularly clean up and archive old branches to keep the repository size manageable.
Regular Maintenance Tips
Regular maintenance is key to ensuring smooth performance. Schedule periodic clean-ups and updates. Use tools like the Windows Virtual Desktop Optimization Tool (VDOT) to enhance your system’s performance. Keeping your system optimized will ensure that GitLab Desktop runs efficiently.
Consistent maintenance and optimization can prevent many common performance issues, ensuring a seamless experience with GitLab Desktop.
Cross-Platform Compatibility of GitLab Desktop
GitLab Desktop is designed to work seamlessly across multiple operating systems, ensuring that developers can maintain their workflow regardless of their preferred platform. Whether you’re using Windows, macOS, or Linux, GitLab Desktop has you covered.
Security Best Practices for GitLab Desktop
Ensuring the security of your GitLab Desktop is crucial for protecting your projects and sensitive data. Here are some best practices to follow:
Setting Up Two-Factor Authentication
Two-Factor Authentication (2FA) adds an extra layer of security to your GitLab account. By requiring a second form of verification, you can significantly reduce the risk of unauthorized access. To enable 2FA, go to your account settings and follow the prompts to set it up. This step is essential for safeguarding your account.
Managing SSH Keys
SSH keys provide a secure way to access your GitLab repositories without needing to enter a password each time. It’s important to generate strong, unique SSH keys and store them securely. Follow the guide on creating an SSH key in GitLab to get started. Remember, securely storing your SSH keys is just as important as generating them.
Regular Security Audits
Conducting regular security audits helps identify and remediate vulnerabilities or threats that may impact your GitLab environment. Schedule periodic reviews of your security settings, access controls, and repository permissions. This proactive approach ensures that your GitLab setup remains secure over time.
Regular security audits are a proactive way to maintain the integrity and security of your GitLab environment.
Automating Workflows with GitLab Desktop
Automating your workflows with GitLab Desktop can significantly boost your productivity and streamline your development process. This section will guide you through setting up automated scripts, integrating with third-party tools, and scheduling regular tasks to keep your projects running smoothly.
Setting Up Automated Scripts
Automated scripts are the backbone of efficient workflows. With GitLab Desktop, you can easily set up scripts to handle repetitive tasks, such as code formatting, testing, and deployment. By automating these tasks, you free up time to focus on more critical aspects of your project.
To get started, create a script that performs the desired task and configure GitLab Desktop to run it at specific stages of your workflow. For example, you can set up a script to run tests every time you push changes to your repository.
Integrating with Third-Party Tools
Integrating GitLab Desktop with third-party tools can further enhance your workflow. Tools like Jenkins, Docker, and Slack can be seamlessly connected to GitLab Desktop, allowing for a more cohesive development environment. GitLab actions and gitlabci are particularly useful for continuous integration and deployment.
To integrate a third-party tool, follow these steps:
- Install the necessary plugins or extensions for the tool you want to integrate.
- Configure the tool to communicate with GitLab Desktop, ensuring that it can access your repositories and perform the required actions.
- Test the integration to ensure everything is working correctly.
Scheduling Regular Tasks
Regular maintenance tasks are essential for keeping your projects in top shape. With GitLab Desktop, you can schedule tasks like backups, updates, and security scans to run automatically. This ensures that your projects are always up-to-date and secure without requiring constant manual intervention.
To schedule a task, use the built-in scheduling features of GitLab Desktop or integrate with a third-party scheduling tool. Set the frequency and conditions for the task, and let GitLab Desktop handle the rest.
Automating your workflows with GitLab Desktop not only saves time but also reduces the risk of human error, ensuring a more reliable and efficient development process.
Troubleshooting Common Issues in GitLab Desktop
Common Error Messages and Fixes
Encountering error messages can be frustrating, but most issues have straightforward solutions. For instance, if you see an error like «Could not resolve host,» it often means there’s a network issue. Check your internet connection and try again. If the problem persists, verify your DNS settings.
Reinstalling GitLab Desktop
Sometimes, the best way to fix persistent issues is to reinstall the application. Uninstall GitLab Desktop from your system, download the latest version from the official website, and follow the installation instructions. This can resolve many underlying problems.
Getting Support from GitLab Community
If you’re still having trouble, don’t hesitate to seek help from the GitLab community. The [support portal](#) offers a wealth of resources, including forums and troubleshooting guides. Engaging with the community can provide quick solutions and helpful tips.
Remember, troubleshooting is a normal part of using any software. Stay patient and methodical, and you’ll resolve most issues in no time.
Additional Tips
- Always keep your software updated to avoid compatibility issues.
- Regularly back up your repositories to prevent data loss.
- Use the built-in help features for quick guidance.
By following these steps, you can effectively troubleshoot and resolve common issues in GitLab Desktop, ensuring a smoother and more productive experience.
Having trouble with GitLab Desktop? Don’t worry, you’re not alone. Many users face common issues that can be easily fixed with the right guidance. For step-by-step solutions and more helpful tips, visit our website. You’ll find everything you need to get GitLab running smoothly again.
Conclusion
Setting up GitLab on your Windows desktop doesn’t have to be a daunting task. By following the steps outlined in this guide, you can easily install and start using GitLab Desktop to manage your projects efficiently. Whether you’re working alone or as part of a team, GitLab Desktop offers a user-friendly interface that simplifies version control and collaboration. With its powerful features and seamless integration with GitLab’s web interface, you can streamline your development workflow and focus on what really matters—writing great code. So, dive in and make the most of GitLab Desktop to boost your productivity and enhance your coding experience.
Contents
-
GitLab Client Setup
- Windows
- Linux
- Mac
- References
GitLab Client Setup
These are general instructions for getting a git client installed in order to connect and use our locate GitLab service. For getting access and additional information on our local version of GitLab please see the following KB article: Gitlab Information
Windows
There are a number of Windows clients for git, this document covers Git for Windows
-
Please review Software Regulations Policy 870 and submit a Software & Hosted Solution Purchasing Checklist form prior to installing software on any Oakland University equipment.
- Software
- Git for Windows
-
Available from https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git
-
-
TortoiseGit
-
If you are a TortoiseSVN user then you may be more comfortable using TortoiseGit available at http://code.google.com/p/tortoisegit/
-
Note: TortoiseGit requires !msysGit which is provided by «Git for Windows» but the TortoiseGit site recommends installing TortoiseGit first.
- The instructions provided here only cover setup using Git for Windows (msysgit/Git Gui)
-
-
- Git for Windows
- Setup up a Project (Remote Repository) on code.oakland.edu
-
Login to https://code.oakland.edu using your NetId
- Click on «Projects» and then «+ New Project»
- Click «Create project»
- Enter a Project Name, e.g. — «System-Profiling» and Click «Create Project»
-
- Create an SSH Key to allow access from your machine to code.oakland.edu
-
Start->All Programs->Git->Git Gui
-
In Git Gui Choose Help->Show SSH Key
- If there is one listed then click «Copy to Clipboard»
- If one is not listed then click «Generate» and then Click «Copy to Clipboard»
-
Login to https://code.oakland.edu using your NetId
- Click on «My Profile» (Person Icon).
- Click «Add Public Key»
- Paste Clipboard contents into the «Key» field
- Enter a Title for the key (e.g — username@computername )
-
- Create a Local Repository and tell Git who you are
- In Git Gui
- Click on «Create New Repository»
- Browse for a Directory (using «Make New Folder» if necessary) and click «OK»
-
It is important to note that the selected repository location Must Not exist. e.g. — «C:/Users/admnetid/Git/system-profiling»
-
- Click «Create»
-
Click «Edit»->»Options»
- Fill in «User Name:» and «Email Address:» for your Repository (on the left) and for «Global» (on the right)
- Click «Save»
- Initialize the repository
- Browse to the location of you Local Repository, e.g. — «C:/Users/adminetid/Git/system-profiling»
- Create a file within the Local Repository, e.g. — README.txt
- Right-Click and select «Git Gui»
- In Git Gui Click «Stage Changed»
- Make a note in the «Initial Commit Message» windows (e.g. — First commit)
- Click «Commit»
-
Click «Remote»->»Add»
- In «Remote Details»,
- Fill out «Name:» (most likely you will want to put «origin»)
b. Fill out «Location:» ( e.g. — [email protected]/netid/system-profiling, You can find the location by logging into code.oakland.edu, Clicking on «Dashboard», then on you project, and in the «Show» tab for «SSH» you should see something starting with [email protected] ) c. Under «Further Action», Select «Do Nothing Else Now»
- Fill out «Name:» (most likely you will want to put «origin»)
- Click «Push»
- Click «Push» again
- Click «Close»
- Clone your repository
- Use a web browser to view your repository on code.oakland.edu
- Ensure «SSH» button is pressed
- Example source link: git @ code.oakland.edu/[your NetID]/myrepo.git
- On the server, open Git Extensions
- Generate a keypair
-
Go to remotes -> PuTTY -> Generate to import key
- Click «Generate»
- Save your public and private keys to your documents area
- Use a convention like id_rsa for the private key and id_rsa.pub for the public key. Your private key should be kept secret.
- Generating a key with a pass phrase is not recommended as it can give some difficulty when updating the server as a scheduled task. For ad-hoc updating please use a pass phrase.
-
- Add the public key to code.oakland.edu
- Go to My Profile
- Click «Add Public Key»
- Give the key a title
- Paste the contents of your public key on the next line
- Once the above steps have been completed select the clone repository
- Click «Load SSH key» and load the private key file
- Paste the repos link in the top box
- Try cloning to your desktop first. If successful then clone to \inetpub\wwwroot
- Use a web browser to view your repository on code.oakland.edu
Linux
- Install git
- Ubuntu/Debian
-
sudo apt install git
b. Fedora/Red Hat/CentOS
-
sudo dnf install git
-
- Ubuntu/Debian
- Create ssh keys if you don’t have one already (Check ~/.ssh for id_rsa.pub)
- ssh-keygen -t rsa
- For password-less logins for git leave the passphrase empty when prompted, otherwise make sure you remember this passphrase, you will need it when pushing to Git.
- Copy the contents of ~/.ssh/id_rsa.pub
-
Login to https://code.oakland.edu using your NetId
- Click on «My Profile» (Person Icon).
- Click «Add Public Key»
- Paste contents if id_rsa.pub into the «Key» field
- Enter a Title for the key (e.g — username@computername )
- ssh-keygen -t rsa
- Setup up a Project (Remote Repository) on code.oakland.edu
-
Login to https://code.oakland.edu using your NetId
- Click on «Projects» and then «+ New Project»
- Click «Create project»
- Enter a Project Name, e.g. — «System-Profiling» and Click «Create Project»
-
Follow instructions listed in the «Show»->»SSH» tab after creating the project.
-
Mac
- Install xcode from app store
- Be sure to download the «Command Line Tools» option along with xcode
- Create ssh keys in terminal if you don’t have one already (Check ~/.ssh for id_rsa.pub)
- ssh-keygen -t rsa
- For password-less logins for git leave the passphrase empty when prompted, otherwise make sure you remember this passphrase, you will need it when pushing to Git.
-
Copy the contents of ~/.ssh/id_rsa.pub (use pbcopy < ~/.ssh/id_rsa.pub)
-
Login to https://code.oakland.edu using your NetId
- Click on «My Profile» (Person Icon).
- Click «Add Public Key»
- Paste contents if id_rsa.pub into the «Key» field
- Enter a Title for the key (e.g — username@computername )
- ssh-keygen -t rsa
- Setup up a Project (Remote Repository) on code.oakland.edu
-
Login to https://code.oakland.edu using your NetId
- Click on «Projects» and then «+ New Project»
- Click «Create project»
- Enter a Project Name, e.g. — «System-Profiling» and Click «Create Project»
-
Follow instructions listed in the «Show»->»SSH» tab after creating the project.
-
References
-
Git on Windows for Newbs
-
Apress Git Pro Book
-
GitLab Source
-
Git
-
Git on the command line
- TSSHowTo