How to add file to repo from Bitbucket Server like GitHub - bitbucket

I am on version v6.6.3 of Atlassian Bitbucket Server:
From the GitHub website, I can freely add new files and edit existing files without needing to clone / push. In Bitbucket, I can freely edit any existing file by clicking on the file in the "Source" tab, but there does not seem to be any option to add new files.
Is there a way to add a new file to a repository in Bitbucket without needing to clone / push anything?
Is there an equivalent to the "Create new file" button from GitHub in Bitbucket?
Here is what my repo view looks like in Bitbucket Server:

Bitbucket Cloud (v.7.1) provides the Add file option in every page level under the project source:
It will be added as a new commit.

Related

Copying Plastic Cloud Repo

Just wondering if this is still the way to copy a cloud repo
Simple repository clone operation
When you're working in distributed mode with a local development server and want to join a project, you have a lot of work ahead with PlasticSCM.
Open PlasticSCM, go to repositories view.
Type in the name of your local plastic server.
Create a new empty repository.
Right-Click and create a workspace from that repository.
Open that workspace.
Go to sync replication view.
Add your local repo as source repository.
Add the repository which holds the project you want to join (clone to your local server) as destination repository.
Click refresh.
Pull the changes.
Open your local workspace.
Click update workspace.
Yes, if you want to move a cloud repo to a local server, using the synchronization view is the recommended workflow:
https://www.plasticscm.com/documentation/gui/plastic-scm-version-control-gui-guide#Chapter23:TheSynchronizationview

How to clone a Gerrit Code Review repository to a local repository

I have installed Gerrit Code Review. Everything is working fine but in the documentation it is unclear how to clone a repository to local directory.
Using Gerrit admin interface I created a new project. How do I know what URL to use? Does Gerrit support https access to repositories?
Go to Gerrit Web UI
Go to the "Projects > List" menu item
Find your project (use the "Filter" field if needed)
Click on the project name
Go to the "General" tab
See the "git clone" command on the top of the page
Choose if you want to clone via "http" or "ssh"
Copy the "git clone" command clicking on the right icon
Paste/execute the "git clone" command
As it turns out this issue is related to SSH/HTTP/Anonymous HTTP Clone URL not visible in Gerrit 2.12.2
I installed in batch mode without plugins. In that case git clone is not there.

Remove svn repository associated with ios project in XCode

I'm a little bit confused with Xcode 5 Source Control options. I recently downloaded a project from Internet. That project had an svn repository associated and now I want to commit this project to one git repository hosted at bitbucket.
The problem is that I'm not able to see where is the option or what do I have to do to delete the association between the svn repository and the project. In the same way, I don't see where can I associate my bitbucket repository with the project.
I will answer myself. First of all I deleted the .svn folder inside my project, after that I opened a terminal, I went to my project folder and I entered:
git init
git add .
git commit -m "first commit"
After these steps I was able to upload the project to one bitbucket repo =)

Question marks in project navigator Xcode 5

i just updated to Xcode 5 and my project is using GIT, after update completed suddenly question marks appear in project navigator file near each file.
when i am trying to Commit i don't see what files have been changed, i cannot pull also
and when i am trying to push it gives :Push Success" message but the repository on GitHub don't updated.
You probably did not set up your git repository properly. There are ways of adding external git repositories, but they tend not to work well for github (in my experience) and always lead to these sorts of issues.
If you want to set up a remote git repository through github on XCode these are the steps you should take.
Make the repository on github. Make sure to add the .gitignore file for Objective-C.
Clone the repository.
Go to XCode, press "create new project"
Create the project in the folder you cloned the repo to. I always name it the exact same thing, but I don't know if that is necessary.
Make sure not to select create local git repository.
This will definitely create a project that is under version control by a remote git repository hosted on github.
Quick fix is to Create or Save the new project 'outside' the directory (say Desktop) that is not linked to your github/bitbucket

Rails: Rubymine: GitHub

I can't seem to figure out how to commit my files to GitHub.
I am using RubyMine 4.5 on the MAC
I have git set up locally
I have a private account on GitHub
From the RubyMine Preferences, I have my GitHub credentials properly set up (and acknowledged as such by RubyMine), but it did not give me an option to select a repository on GitHub.
How do I commit file to the GitHub repository? There are too many CVS and Git menu items in RubyMine.
PS: I've read the online help sections (the only thing available to me), and I followed the instructions in the GitHub integration, but the directory I'm trying to commit is failing to push to GitHub, with RubyMine telling me that there was nothing to commit. This is the first time I use RubyMine for GitHub. Nothing about this on StackOverflow.
Okay, I think I've recreated your situation locally and it appears that RubyMine has terrible support for managing remotes. If you create a Git repository locally, then (separately) create a repository on GitHub, there's no obvious way to marry the two from within RubyMine.
Basically, you need to set up GitHub as a remote for your local repository from the shell, and once that's done then RubyMine will be able to push as normal.
Please note that the below instructions assume you want to overwrite your GitHub repository with the full history from your local repository -- If your GitHub repository has data that you do not want to lose, do not execute these commands! See Below.
Open up Terminal:
cd /path/to/my/project/root
git remote add origin https://github.com/yourusername/yourrepo.git
git push -u origin +master
Now, RubyMine should be able to push to your GitHub repository via VCS > Git > Push
If your GitHub repository has already been committed to and you don't want to lose those changes, you'll need to either create a new GitHub repo or clone your GitHub repo into another folder and merge your local repository into the clone.
This can be avoided entirely if you're trying to push your existing local repository to a new GitHub repo: Simply use the VCS > Import into Version Control > Share project on GitHub option and use the dialog to create a new GitHub repository.

Resources